|
@@ -157,6 +157,7 @@
|
|
if (this.paused || this.noshow) {
|
|
if (this.paused || this.noshow) {
|
|
clearTimeout(this.timeout);
|
|
clearTimeout(this.timeout);
|
|
} else {
|
|
} else {
|
|
|
|
+ clearTimeout(this.timeout);
|
|
this.timeout = setTimeout(function () {
|
|
this.timeout = setTimeout(function () {
|
|
self.next();
|
|
self.next();
|
|
}, this._options('delay'));
|
|
}, this._options('delay'));
|
|
@@ -331,8 +332,17 @@
|
|
}
|
|
}
|
|
|
|
|
|
if (video) {
|
|
if (video) {
|
|
|
|
+ // oncanplay is triggered every time when loop=true
|
|
|
|
+ // so let's start the slide only once
|
|
|
|
+ var played = false;
|
|
|
|
+
|
|
video.play();
|
|
video.play();
|
|
- video.oncanplay = go;
|
|
|
|
|
|
+ video.oncanplay = function () {
|
|
|
|
+ if (!played) {
|
|
|
|
+ played = true;
|
|
|
|
+ go();
|
|
|
|
+ }
|
|
|
|
+ };
|
|
} else {
|
|
} else {
|
|
img.onload = go;
|
|
img.onload = go;
|
|
}
|
|
}
|