1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00
This commit is contained in:
Daniel Neto 2023-10-27 10:53:43 -03:00
parent 0ed66a9787
commit 6d42cdf411
2 changed files with 3 additions and 2 deletions

View file

@ -110,6 +110,7 @@ if (isMobile()) {
if (player.readyState() <= 2) { if (player.readyState() <= 2) {
isOnlineLabel = false; isOnlineLabel = false;
onlineLabelOffline('#<?php echo $liveViewStatusID; ?>'); onlineLabelOffline('#<?php echo $liveViewStatusID; ?>');
console.log("playerPlay: (promisePlaytryNetworkFail) Autoplay was prevented");
player.pause(); player.pause();
//player.reset(); //player.reset();
$('#mainVideo.liveVideo').find('.vjs-poster').css({'background-image': 'url(<?php echo $global['webSiteRootURL']; ?>plugin/Live/view/Offline.jpg)'}); $('#mainVideo.liveVideo').find('.vjs-poster').css({'background-image': 'url(<?php echo $global['webSiteRootURL']; ?>plugin/Live/view/Offline.jpg)'});

View file

@ -640,7 +640,7 @@ function playerPlay(currentTime) {
} else { } else {
if (promisePlaytryNetworkFail >= 5) { if (promisePlaytryNetworkFail >= 5) {
userIsControling = true; userIsControling = true;
//console.log("playerPlay: (promisePlaytryNetworkFail) Autoplay was prevented"); console.log("playerPlay: (promisePlaytryNetworkFail) Autoplay was prevented");
player.pause(); player.pause();
} else if (promisePlaytry <= 10) { } else if (promisePlaytry <= 10) {
//console.log("playerPlay: (" + promisePlaytry + ") Autoplay was prevented, trying to mute and play ***"); //console.log("playerPlay: (" + promisePlaytry + ") Autoplay was prevented, trying to mute and play ***");