when leaving a video part, set currentTime to 0
This commit is contained in:
parent
e3d9969c93
commit
e8347aeabc
1 changed files with 2 additions and 1 deletions
|
@ -222,8 +222,9 @@ Ox.VideoElement = function(options, self) {
|
||||||
css[key] = self.$video.css(key);
|
css[key] = self.$video.css(key);
|
||||||
});
|
});
|
||||||
if (self.video) {
|
if (self.video) {
|
||||||
self.video.pause();
|
|
||||||
self.$video.hide();
|
self.$video.hide();
|
||||||
|
self.video.pause();
|
||||||
|
self.video.currentTime = 0;
|
||||||
}
|
}
|
||||||
self.$video = self.items[self.currentItem].$videos[part].css(css).show();
|
self.$video = self.items[self.currentItem].$videos[part].css(css).show();
|
||||||
self.video = self.$video[0];
|
self.video = self.$video[0];
|
||||||
|
|
Loading…
Reference in a new issue