I am using idangero.us Swiper slider for my project. I have 3 html5 videos in slider but they are all playing at the same time. I need to pause the video when I click next and play again when it's visible.
HTML:
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<video preload="auto" loop="" autoplay="">
<source src=".../>
</video>
</div>
<div class="swiper-slide">
<video preload="auto" loop="" autoplay="">
<source src=".../>
</video>
</div>
</div>
</div>
JS:
var swiper = new Swiper('.swiper-container', {
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
autoplay: 5000,
});