Search code examples
javascripthtmlhtml5-videovideo.js

How can a custom HTML5 menu be created in Video.js?


I am presently tinkering with this HTML5 video player, video.js and I would like to edit the present HTML5 right-click context menu to something of my own. I used oncontextmenu="return false" in the video tag to get rid of the context menu. Any suggestions as to how I go about editing the menu to add what I want link maybe a hyperlink?


Solution

  • Please use this code between script tag.

    $(document).ready(function(){
        document.oncontextmenu = function() {
           return false;
        }; 
    });
    

    JSFIDDLE