samedi 5 avril 2014

Video.js Show play button only when paused


Vote count:

0




I am currently using video.js on my website.


I have made controls false, which also hides the play button.


I am looking to have the play button display only when the video is paused, and not display whilst the video is playing.


I tried the following , but it doesn't work.



videojs("myPlayer").ready(function(){
var myPlayer = this;
myPlayer.on("paused", function(){
myPlayer.bigPlayButton.show();
});
});


Thank you!



asked 44 secs ago






Aucun commentaire:

Enregistrer un commentaire