aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player
diff options
context:
space:
mode:
authorGaƫtan Rizio <gaetan+git@rizio.fr>2018-07-08 13:08:35 +0200
committerChocobozzz <me@florianbigard.com>2018-07-09 14:27:12 +0200
commit8244e18719e10ab1a376506ee30f941e5725e8ed (patch)
tree500090fa6a8e111f28e9d648e8fac860572bd0da /client/src/assets/player
parent81858b84d35a9394bae973f755c975c9658d561c (diff)
downloadPeerTube-8244e18719e10ab1a376506ee30f941e5725e8ed.tar.gz
PeerTube-8244e18719e10ab1a376506ee30f941e5725e8ed.tar.zst
PeerTube-8244e18719e10ab1a376506ee30f941e5725e8ed.zip
[#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
Diffstat (limited to 'client/src/assets/player')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts2
1 files changed, 2 insertions, 0 deletions
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 {
240 240
241 if (options.seek) this.seek(options.seek) 241 if (options.seek) this.seek(options.seek)
242 if (options.forcePlay === false && paused === true) this.player.pause() 242 if (options.forcePlay === false && paused === true) this.player.pause()
243
244 return done(err)
243 }) 245 })
244 }) 246 })
245 }, options.delay || 0) 247 }, options.delay || 0)