Respect playback rate when reloading player

pull/334/head
Omar Roth 2019-01-28 20:47:38 -06:00
rodzic b38a2bbd12
commit 26b7200360
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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()
});