From 8244e18719e10ab1a376506ee30f941e5725e8ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ga=C3=ABtan=20Rizio?= Date: Sun, 8 Jul 2018 13:08:35 +0200 Subject: [PATCH] [#766] Fix the change of speed when quality changes When changing the `playbackRate` of the video then changing the quality, the `playbackRate` returned to its initial value (1). The reason behind it is that the callback was not called when change of the quality was done if there was no error. This commit does the following: * Ensure the callback (`done`) is called after changing the quality --- client/src/assets/player/peertube-videojs-plugin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 32cc4cd8f..936fb2577 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts @@ -240,6 +240,8 @@ class PeerTubePlugin extends Plugin { if (options.seek) this.seek(options.seek) if (options.forcePlay === false && paused === true) this.player.pause() + + return done(err) }) }) }, options.delay || 0) -- 2.25.1