From 91d9558963c4eb6e47d74a14ff8d527c6326e0e1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Jun 2018 14:20:43 +0200 Subject: Fix seeking on auto resolution change --- client/src/assets/player/peertube-videojs-plugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src') diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index f303301d5..e4fea0991 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts @@ -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() }) -- cgit v1.2.3