user3901281
user3901281

Reputation:

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?

Upvotes: 1

Views: 1345

Answers (1)

Prashant Tapase
Prashant Tapase

Reputation: 2147

Please use this code between script tag.

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

JSFIDDLE

Upvotes: 1

Related Questions