Fzero
Advanced Member
- Joined
- Mar 9, 2010
- Messages
- 4,702
I am having difficulty with a JS/Jquery Slider, called ResponsiveSlide.
It's nice, and simple to implement if just using photos.
But, I'm trying to get it to use both photos as well as embedded YouTube videos.
I add the embed code and it works fine, apart from one thing.
...When you click the prev|next arrows of the slider, the video is still playing in the background, so the audio is still there and no good for the next slide.
I'm wondering if some JS trickery could be applied, which would pause or stop the embedded YouTube playback as soon as that slide is moved away from.
Perhaps it's something in the YouTube API, or not, I honestly have no idea.
But, if anyone has done this sort of thing themselves, or fancies the challenge, please let me know
It's nice, and simple to implement if just using photos.
But, I'm trying to get it to use both photos as well as embedded YouTube videos.
I add the embed code and it works fine, apart from one thing.
...When you click the prev|next arrows of the slider, the video is still playing in the background, so the audio is still there and no good for the next slide.
I'm wondering if some JS trickery could be applied, which would pause or stop the embedded YouTube playback as soon as that slide is moved away from.
Perhaps it's something in the YouTube API, or not, I honestly have no idea.
But, if anyone has done this sort of thing themselves, or fancies the challenge, please let me know