Explore the community Forums Lectora Lectora Questions & Answers Disable Video Player Full Screen Option Reply To: Disable Video Player Full Screen Option

#421275 Score: 0
Profile photo of Darrel Somoza
Darrel Somoza
friend finder
junior moderator
wise owl
curious george
209 pts

In additional to Tims code above (beat me to it) you’ll also have to add the following (replacing ‘video40’ with your videos HTML name):

document.getElementById(“video40”).addEventListener(“contextmenu”, function(e) {e.preventDefault();});

This will prevent the right click context menu which also allows full screen. Keep in mind, however, that the console is always available and those savvy can get around just about anything you do.

  • This reply was modified 1 year, 6 months ago by Profile photo of Darrel Somoza Darrel Somoza. Reason: typo