You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The video flickers at the end, and it's very annoying with short loops.
BUT if you set an interval shortly before the end and rewind, flickering goes. Also set repeat=false in defaults.
'onStateChange': function(e) {
if (e.data === 1) {
self.$node.find('img').fadeOut(400);
self.$node.addClass('loaded');
setInterval(function() { self.player.seekTo(self.options.start)}, RewindVideoAtTiming);
} else if (e.data === 0 && self.options.repeat) { // video ended and repeat option is set true
self.player.seekTo(self.options.start);
}
}
I set RewindVideoAtTiming manually, and setInterval isn't aware that playback could have been paused for scrolling, there must be less dirty way to do this.
The text was updated successfully, but these errors were encountered:
Thanks to Babyasin, I've incorparated the RewindVideoAtTiming into my options and set the default to false, but this isn't ideal as it breaks our bower instance. Any word on a fix for this?
The video flickers at the end, and it's very annoying with short loops.
BUT if you set an interval shortly before the end and rewind, flickering goes. Also set repeat=false in defaults.
I set RewindVideoAtTiming manually, and setInterval isn't aware that playback could have been paused for scrolling, there must be less dirty way to do this.
The text was updated successfully, but these errors were encountered: