debugging...
This commit is contained in:
parent
439b7cfad6
commit
842ad71cb9
2 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue