From 6d1631586c224e7e0c03e2aceb375c61d03e1bed Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 20 Aug 2011 23:11:38 +0000 Subject: [PATCH] fix a multipart video bug --- 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 33f19715..790b89e6 100644 --- a/source/Ox.UI/js/Video/Ox.VideoElement.js +++ b/source/Ox.UI/js/Video/Ox.VideoElement.js @@ -122,7 +122,8 @@ Ox.VideoElement = function(options, self) { .css({position: 'absolute'}) .bind({ ended: function() { - if (i < self.parts - 1) { + Ox.print('ENDED', i, item.parts) + if (i < item.parts - 1) { setCurrentPart(self.currentPart + 1); self.video.play(); } /*else if (self.isPlaylist) {