I am using a callback as the last slide in my slider contains a video and the others are only images, I want the video to auto-play when the user choses to view the last slide. It all works fine but it appears the callback function is initiated when the last slide is actioned rather than when it complete its animation.
Maybe I've misunderstood how it works but I would have expected the callback to be triggered when the last slide comes to rest.
I can put a minor delay on my video play call to solve the issue but I'd interested in an explanation so I have a better understanding of bxslider, which I have to say is an excellent plugin. Thanks
onLastSlide: function(currentSlide, totalSlides){
//code for jquery api command to play my video
}
I am using a callback as the last slide in my slider contains a video and the others are only images, I want the video to auto-play when the user choses to view the last slide. It all works fine but it appears the callback function is initiated when the last slide is actioned rather than when it complete its animation.
Maybe I've misunderstood how it works but I would have expected the callback to be triggered when the last slide comes to rest.
I can put a minor delay on my video play call to solve the issue but I'd interested in an explanation so I have a better understanding of bxslider, which I have to say is an excellent plugin. Thanks
onLastSlide: function(currentSlide, totalSlides){ //code for jquery api command to play my video }