mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Stop try to play if too many network errors
This commit is contained in:
parent
741c1b980c
commit
d628e13826
1 changed files with 1 additions and 0 deletions
|
@ -648,6 +648,7 @@ function playerPlay(currentTime) {
|
|||
},promisePlaytryNetworkFail*1000);
|
||||
} else {
|
||||
if (promisePlaytryNetworkFail>=5) {
|
||||
userIsControling = true;
|
||||
console.log("playerPlay: (promisePlaytryNetworkFail) Autoplay was prevented");
|
||||
player.pause();
|
||||
}else if (promisePlaytry <= 10) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue