dont set current time if not needed
This commit is contained in:
parent
76fc986e97
commit
92e49fe41a
1 changed files with 7 additions and 5 deletions
|
@ -287,7 +287,7 @@ Ox.VideoElement = function(options, self) {
|
|||
self.video.muted = muted;
|
||||
self.$video.css(css).show();
|
||||
!self.paused && self.video.play();
|
||||
Ox.Log('Video', 'sCV', self.video.src);
|
||||
Ox.Log('Video', 'sCV', self.video.src, item['in']);
|
||||
if (item['in']) {
|
||||
setCurrentItemTime(item['in']);
|
||||
}
|
||||
|
@ -295,11 +295,13 @@ Ox.VideoElement = function(options, self) {
|
|||
}
|
||||
|
||||
function setCurrentItemTime(currentTime) {
|
||||
Ox.Log('Video', 'sCIT', currentTime);
|
||||
Ox.Log('Video', 'sCIT', currentTime, self.video.currentTime, 'delta', currentTime - self.video.currentTime);
|
||||
if (currentTime != self.video.currentTime) {
|
||||
onLoadedMetadata(self.$video, function() {
|
||||
self.video.currentTime = currentTime;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function setCurrentTime(time) {
|
||||
Ox.Log('Video', 'sCT', time);
|
||||
|
|
Loading…
Reference in a new issue