Only play after error if already playing

pull/334/head
Omar Roth 2019-01-31 20:25:58 -06:00
rodzic 095b5fcea0
commit d5c9b7dfe8
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -121,13 +121,18 @@ player.on('error', function(event) {
var currentTime = player.currentTime();
var playbackRate = player.playbackRate();
var paused = player.paused()
player.load();
if (currentTime > 0.5) {
currentTime -= 0.5;
}
player.currentTime(currentTime);
player.playbackRate(playbackRate);
player.play();
if (!paused) {
player.play();
}
}, 5000), 5000);
}
});