html5 - Video.js - preventing click-to-play functionality -


i'm using video.js embed video html page. used ipad-only web app believe it's using native html5 player. i'm trying disable click-to-play functionality (so user must use controls) having trouble doing so.

i've tried unbinding click event (using jquery) form video/video player/poster , i've tried using addevent add e.preventdefault() video none of seems work.

ps. found couple of posts saying comment out line in code, line doesn't exist in version - maybe plugin has been rewritten.

check here

https://github.com/videojs/video.js/blob/master/docs/api/vjs.mediatechcontroller.md#removecontrolslisteners

so example

v = videojs('scene04-video'); v.tech.removecontrolslisteners(); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -