mirror of
https://github.com/iv-org/invidious
synced 2024-11-09 01:10:27 +00:00
Respect playback rate when reloading player
This commit is contained in:
parent
b38a2bbd12
commit
26b7200360
@ -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()
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user