fix changing resolution in video editor
This commit is contained in:
parent
41f37fee36
commit
77d9cd5e3a
1 changed files with 6 additions and 1 deletions
|
@ -1271,7 +1271,12 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
self.$timeline && self.$timeline.replaceWith(
|
self.$timeline && self.$timeline.replaceWith(
|
||||||
self.$timeline = getTimeline()
|
self.$timeline = getTimeline()
|
||||||
);
|
);
|
||||||
setPosition(self.$video.currentTime());
|
if(self.loadedMetadata) {
|
||||||
|
setPosition(self.$video.currentTime());
|
||||||
|
} else {
|
||||||
|
self.loadedMetadata = true;
|
||||||
|
setPosition(self.options.position);
|
||||||
|
}
|
||||||
that.triggerEvent('durationchange', {
|
that.triggerEvent('durationchange', {
|
||||||
duration: self.options.duration
|
duration: self.options.duration
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue