diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-01-28 20:47:38 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-01-28 20:47:38 -0600 |
| commit | 26b720036039f57e3341406ddaa351b0c93a132a (patch) | |
| tree | 47f85da6c3358f32ac4557109e2292263d4ca4e2 /src | |
| parent | b38a2bbd127fc787216e4722f2dc6a720abda415 (diff) | |
| download | invidious-26b720036039f57e3341406ddaa351b0c93a132a.tar.gz invidious-26b720036039f57e3341406ddaa351b0c93a132a.tar.bz2 invidious-26b720036039f57e3341406ddaa351b0c93a132a.zip | |
Respect playback rate when reloading player
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/components/player.ecr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 09d34368..66ee358b 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -118,11 +118,13 @@ player.on('error', function(event) { console.log("An error occured in the player, reloading..."); var currentTime = player.currentTime(); + var playbackRate = player.playbackRate() player.load(); if (currentTime > 0.5) { currentTime -= 0.5; } player.currentTime(currentTime); + player.playbackRate(playbackRate); player.play() }); |
