debugging...

This commit is contained in:
rlx 2011-08-19 16:49:00 +00:00
commit 842ad71cb9
2 changed files with 4 additions and 1 deletions

View file

@ -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) {