'Swiper Slider - continue to next slide when video ends
I'm using Swiper Slider on my platform, I know how to set each slide timings differently but when it comes to video slides the matter is a tad more complicated. If the video doesn't load immediately, setting up a fixed slide time to move to the next one is not a guaranteed method to make sure the video has finished playing.
Is there I way a can fire the next slide in swiper slider only when the video in a slide has reached the end?
Thank you for your help,
Alessio
Solution 1:[1]
I use data-swiper-autoplay
attribute inn combination with Javascript. I get my video's duration and add it as a value for that attribute in ms.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | user2858311 |