diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-01-31 20:25:58 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-01-31 20:26:11 -0600 |
| commit | d5c9b7dfe8055e939c555c32d106f02c7f983120 (patch) | |
| tree | 56e4a41fd23552584bec73a81e6a1dbea599e575 /src | |
| parent | 095b5fcea0f1cbae2654f4ff43a84cd5fd3f4a14 (diff) | |
| download | invidious-d5c9b7dfe8055e939c555c32d106f02c7f983120.tar.gz invidious-d5c9b7dfe8055e939c555c32d106f02c7f983120.tar.bz2 invidious-d5c9b7dfe8055e939c555c32d106f02c7f983120.zip | |
Only play after error if already playing
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/components/player.ecr | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 9efe04fc..7f932ef4 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -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); } }); |
