1
0
Fork 0
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:
Daniel 2021-08-16 10:26:37 -03:00
parent 741c1b980c
commit d628e13826

View file

@ -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) {