BigVideo.js icon indicating copy to clipboard operation
BigVideo.js copied to clipboard

pause video on start

Open kamalcha opened this issue 10 years ago • 3 comments

How I pause/stop the video at first? I want to pause/stop the video at first and it's play when clicked on play button.

kamalcha avatar Mar 12 '14 07:03 kamalcha

  1. In bigvideojs init update the autoplay var from true to false player = videojs(vidEl.substr(1), { controls:false, autoplay:false, preload:'auto', techOrder:videoTechOrder });

  2. In the playVideo function change isPlaying = true; to isPlaying = false;

  3. Update the playControl function to the following function playControl() { if(isPlaying) { player.pause(); isPlaying = false; } else { player.play(); isPlaying = true; } }

jessepinuelas avatar Jul 05 '14 09:07 jessepinuelas

Hi @kamalcha , Did you solve it without modifying the bigvideo js file. If yes please let me know the changes u did.

Thanks.

sanghamittra avatar Sep 12 '14 12:09 sanghamittra

big video is automatically pausing when i scroll to a different section, but not resuming when i scroll back to tht section, how do i prevent the video from pausing

kzish avatar Feb 04 '18 07:02 kzish