From 842ad71cb93fa27353eae42fdba5417cfbf832d1 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 19 Aug 2011 16:49:00 +0000 Subject: [PATCH] debugging... --- source/Ox.UI/js/Video/Ox.VideoElement.js | 3 ++- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoElement.js b/source/Ox.UI/js/Video/Ox.VideoElement.js index 16f1728d..f0e5dca7 100644 --- a/source/Ox.UI/js/Video/Ox.VideoElement.js +++ b/source/Ox.UI/js/Video/Ox.VideoElement.js @@ -91,13 +91,13 @@ Ox.VideoElement = function(options, self) { } function setCurrentPart(part) { + Ox.print('sCP', part); var css = {}; ['left', 'top', 'width', 'height'].forEach(function(key) { css[key] = self.$video.css(key); }); self.$video.hide(); self.video.pause(); - Ox.print('s%%%%%%%%%%%%%%%%%%%', self.$videos, part) self.$video = self.$videos[part].css(css).show(); self.video = self.$video[0]; !self.paused && self.video.play(); @@ -106,6 +106,7 @@ Ox.VideoElement = function(options, self) { } function setCurrentTime(time) { + Ox.print('sCT', time); var currentPart, currentTime; Ox.loop(self.parts - 1, -1, -1, function(i) { if (self.offsets[i] <= time) { diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index bd47af6e..a0efff3c 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -1420,6 +1420,8 @@ Ox.VideoPlayer = function(options, self) { self.options.out < self.$video.duration() ? self.options.out : self.$video.duration(); self.options.duration = self.out - self['in']; + Ox.print('----------------------------------------', self.options.position) + //self.options.position = Ox.limit(self.options.position, self['in'], self.out); self.$video.currentTime(self.options.position); self.options.paused && self.options.showMarkers && setMarkers();