From 26b720036039f57e3341406ddaa351b0c93a132a Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 28 Jan 2019 20:47:38 -0600 Subject: [PATCH] Respect playback rate when reloading player --- src/invidious/views/components/player.ecr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 09d343683..66ee358be 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() });