debugging...

This commit is contained in:
rlx 2011-08-19 16:49:00 +00:00
parent 439b7cfad6
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) { function setCurrentPart(part) {
Ox.print('sCP', part);
var css = {}; var css = {};
['left', 'top', 'width', 'height'].forEach(function(key) { ['left', 'top', 'width', 'height'].forEach(function(key) {
css[key] = self.$video.css(key); css[key] = self.$video.css(key);
}); });
self.$video.hide(); self.$video.hide();
self.video.pause(); self.video.pause();
Ox.print('s%%%%%%%%%%%%%%%%%%%', self.$videos, part)
self.$video = self.$videos[part].css(css).show(); self.$video = self.$videos[part].css(css).show();
self.video = self.$video[0]; self.video = self.$video[0];
!self.paused && self.video.play(); !self.paused && self.video.play();
@ -106,6 +106,7 @@ Ox.VideoElement = function(options, self) {
} }
function setCurrentTime(time) { function setCurrentTime(time) {
Ox.print('sCT', time);
var currentPart, currentTime; var currentPart, currentTime;
Ox.loop(self.parts - 1, -1, -1, function(i) { Ox.loop(self.parts - 1, -1, -1, function(i) {
if (self.offsets[i] <= time) { if (self.offsets[i] <= time) {

View file

@ -1420,6 +1420,8 @@ Ox.VideoPlayer = function(options, self) {
self.options.out < self.$video.duration() ? self.options.out < self.$video.duration() ?
self.options.out : self.$video.duration(); self.options.out : self.$video.duration();
self.options.duration = self.out - self['in']; 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.$video.currentTime(self.options.position);
self.options.paused && self.options.showMarkers && setMarkers(); self.options.paused && self.options.showMarkers && setMarkers();