There are several ways to do this. You can show the button when the video ends with the API :
videojs("myPlayer").ready(function(){ var myPlayer = this; myPlayer.on("ended", function(){ myPlayer.bigPlayButton.show(); }); });
Or, if you want to change video.dev.js , you just need to uncomment the line that does the same:
vjs.BigPlayButton = vjs.Button.extend({ init: function(player, options){ vjs.Button.call(this, player, options); if (!player.controls()) { this.hide(); } player.on('play', vjs.bind(this, this.hide));
Or with CSS, you can make the button appear whenever the video does not play (completed or paused):
.video-js.vjs-default-skin.vjs-paused .vjs-big-play-button {display:block !important;}
The messages you saw about hiding probably refer to version 3 of the .js video, as in this case the play button was shown at the end.
source share