-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slider take a delay after video playing is complete #662
Comments
Hi @binishprabhakar! You can try modifying the var isPlaying = function(slider) {
var vid = slider.$currentPage.find("video");
if (vid.length && typeof vid[0].pause !== "undefined") {
if (vid[0].ended) {
slider.gotoPage(slider.currentPage, true);
return false;
}
return !vid[0].paused && !vid[0].ended;
}
return false;
};
$(this.$el).anythingSlider({
// ...
isVideoPlaying: function(slider) {
return isPlaying(slider);
}
}); I quickly threw this together and didn't check the logic or functionality, so please bear that in mind. |
@Mottie I have tried this method also. But getting maximum stack exceeded error. app.js:19056 Uncaught RangeError: Maximum call stack size exceeded
|
@Mottie I have come up with a solution , seems like issue has fixed. onSlideComplete: function(slider) {
}, But, it shows a transition between slide 1 to 2, if slider.gotoPage(slider.currentPage + 1, true); Do you have any idea about this or have any other suggestions. |
Its fixed thank you ... @Mottie |
I have implemented a video slider, everything working fine, but after video playing completed, slider is taking delay: 10000, milliseconds to slide to next slide. How to slide remove this delay of transition in case of video slider. Please advise
The text was updated successfully, but these errors were encountered: