Disable right click on HTML5 video

Product

WonderPlugin Gallery

Question:

I need to deactivate the functionality which occurs when you right click on a video. It gives you the option to ‘download video’ I need to turn this off for copyright reasons. I know there are always ways and means to download video content if you want it badly enough, but having a download option when you right click is something I really need to turn off!

Answer:

The right click menu is a function of the web browser. To disable it, you can try to add the following JavaScript to the head section of your web page, just before the </head> tag.

jQuery(document).ready(function(){
   jQuery('video').bind('contextmenu',function() { return false; });
});