Open brainbrian opened 11 years ago
You raise a good point and I will look into it :)
Is there any update on a fix for this?
+1 for an update
I know this is an old post, but we just came up against this and I thought I'd post our findings. While we were able to work around this issue, it's worth mentioning that we didn't use autoStart, so we weren't trying to start/stop the slide show on video pause/play, we just wanted the videos to stop on slide change.
Workaround The code in the original post works perfectly as-is in horizontal mode if you set infiniteLoop to false. This removes the cloned (duplicated) slides. If you don't need infiniteLoop this works great.
Partial Solution We also found that we could get it mostly working with infiniteLoop enabled if you change this line
var prevSlide = $('.bxslider li').eq(oldIndex);
to
var prevSlide = $('.bxslider li:not(.bx-clone)').eq(oldIndex);
The last problem, which we didn't solve was that the video on the last slide does not stop when changing slides. It works for all other slides however.
When using either 'horizontal' or 'vertical' modes, you are duplicating the first and last slide. This becomes an issue when embedding multiple Vimeo videos. I now will be faced with a conflict of multiple IDs. Each Vimeo video needs a player ID for the Froogaloop API to recognize it. I'd suggest you find a way to do these transitions without duplicating slides. There is no way for me to use either mode and I'm forced to use the 'fade' mode if I'm going to get this code to work correctly. I'm att a point where I have to use Flexsider, which I think is a huge bummer because I love BX Slider so much!