]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/peertube-videojs-plugin.ts
Fix seeking on auto resolution change
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / peertube-videojs-plugin.ts
index f303301d5f0df50574dded8190cd827a179b6862..e4fea0991901159fdfedd3d21bfbe55782ae99ab 100644 (file)
@@ -263,7 +263,7 @@ class PeerTubePlugin extends Plugin {
     const options = {
       forcePlay: false,
       delay,
-      seek: currentTime
+      seek: currentTime + (delay / 1000)
     }
     this.updateVideoFile(newVideoFile, options)
   }
@@ -310,6 +310,7 @@ class PeerTubePlugin extends Plugin {
                           this.player.pause()
                           this.player.posterImage.show()
                           this.player.removeClass('vjs-has-autoplay')
+                          this.player.removeClass('vjs-has-big-play-button-clicked')
 
                           return done()
                         })