Fix player progress bar when changing resolution
This commit is contained in:
parent
8cf9987334
commit
fe05c3acbd
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 738 B |
|
@ -111,6 +111,8 @@ class PeerTubePlugin extends Plugin {
|
|||
const muted = getStoredMute()
|
||||
if (muted !== undefined) this.player.muted(muted)
|
||||
|
||||
this.player.duration(options.videoDuration)
|
||||
|
||||
this.initializePlayer()
|
||||
this.runTorrentInfoScheduler()
|
||||
this.runViewAdd()
|
||||
|
@ -302,6 +304,9 @@ class PeerTubePlugin extends Plugin {
|
|||
|
||||
this.flushVideoFile(previousVideoFile)
|
||||
|
||||
// Update progress bar (just for the UI), do not wait rendering
|
||||
if (options.seek) this.player.currentTime(options.seek)
|
||||
|
||||
const renderVideoOptions = { autoplay: false, controls: true }
|
||||
renderVideo(torrent.files[ 0 ], this.playerElement, renderVideoOptions, (err, renderer) => {
|
||||
this.renderer = renderer
|
||||
|
|
|
@ -171,7 +171,7 @@ $setting-transition-easing: ease-out;
|
|||
left: 8px;
|
||||
content: ' ';
|
||||
margin-top: 1px;
|
||||
background-image: url('#{$assets-path}/player/images/tick.svg');
|
||||
background-image: url('#{$assets-path}/player/images/tick-white.svg');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue