From e8347aeabce9a31a46cfc31269bdc0a42a26de2a Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 23 Aug 2011 08:14:22 +0000 Subject: [PATCH] when leaving a video part, set currentTime to 0 --- source/Ox.UI/js/Video/Ox.VideoElement.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoElement.js b/source/Ox.UI/js/Video/Ox.VideoElement.js index 31db8ab9..cec4646f 100644 --- a/source/Ox.UI/js/Video/Ox.VideoElement.js +++ b/source/Ox.UI/js/Video/Ox.VideoElement.js @@ -222,8 +222,9 @@ Ox.VideoElement = function(options, self) { css[key] = self.$video.css(key); }); if (self.video) { - self.video.pause(); self.$video.hide(); + self.video.pause(); + self.video.currentTime = 0; } self.$video = self.items[self.currentItem].$videos[part].css(css).show(); self.video = self.$video[0];