sachinchoolur / lightslider

JQuery lightSlider is a lightweight responsive Content slider with carousel thumbnails navigation
http://sachinchoolur.github.io/lightslider/
MIT License
2.04k stars 1.52k forks source link

Q: next slide when video ends? #323

Open phideas opened 7 years ago

phideas commented 7 years ago

Discovering lightslider options and can't find the answer to this question: Is it possible with lightslider to trigger nextSlide when video (youtube, vimeo, local hmtl5...) ends?

ghost commented 7 years ago

Its seems like lightslider is no longer maintained :(

noman115pk commented 7 years ago

@phideas If you are using youtube API or Vimeo API to load the videos. You can use their callbacks for video ends (or oncomplete) and then invoke the slider.goToNextSlide(); I think LightSlider wouldn't know if video is at start or end coz it's coming from a third party. Second option is to maintain a check on video time length and use lightSlider's onAfterSlide callback to switch to next slide when video length check gives status of video is complete.

phideas commented 7 years ago

@noman115pk Thank you! I am gonna try it out.