-
Hi. I've spent a lot of time scouring the internet and trying things for why the big play button won't hide during playback. Everything else is working as expected, but this. My guess is something is happening in the way I'm initiating the player that causes ".vjs-big-play-button" to have no effect. Any thoughts or advice would be greatly appreciated. Thanks! ** - - - Attempts to hide big play button that don't work - - -**/* BIG PLAY BUTTON HIDE: ATTEMPT #1 */ .video-js .vjs-paused .vjs-big-play-button { /* BIG PLAY BUTTON HIDE: ATTEMPT #2 */ .video-js .vjs-playing .vjs-big-play-button { ** - - - other custom css - - - **`.video-js { .video-js .vjs-progress-control .vjs-mouse-display { /* WORKING: ALIGN BIG PLAY BUTTON /
} /* WORKING: SHOW CONTROL BAR ON STARTUP */ ** - - - player is created in php - - - **
EOT;
EOT; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
FYI: I finally found an answer. For my initiation it needs this code in the script section: player.ready(function () { |
Beta Was this translation helpful? Give feedback.
FYI: I finally found an answer. For my initiation it needs this code in the script section:
player.ready(function () {
videojs("evonet-video-$playerId").ready(function () {
var myPlayer = this;
myPlayer.on("pause", function () {
myPlayer.bigPlayButton.show();
});
myPlayer.on("play", function () {
myPlayer.bigPlayButton.hide();
});
});
});