mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
Update
This commit is contained in:
parent
0ed66a9787
commit
6d42cdf411
2 changed files with 3 additions and 2 deletions
|
@ -110,6 +110,7 @@ if (isMobile()) {
|
|||
if (player.readyState() <= 2) {
|
||||
isOnlineLabel = false;
|
||||
onlineLabelOffline('#<?php echo $liveViewStatusID; ?>');
|
||||
console.log("playerPlay: (promisePlaytryNetworkFail) Autoplay was prevented");
|
||||
player.pause();
|
||||
//player.reset();
|
||||
$('#mainVideo.liveVideo').find('.vjs-poster').css({'background-image': 'url(<?php echo $global['webSiteRootURL']; ?>plugin/Live/view/Offline.jpg)'});
|
||||
|
|
|
@ -640,7 +640,7 @@ function playerPlay(currentTime) {
|
|||
} else {
|
||||
if (promisePlaytryNetworkFail >= 5) {
|
||||
userIsControling = true;
|
||||
//console.log("playerPlay: (promisePlaytryNetworkFail) Autoplay was prevented");
|
||||
console.log("playerPlay: (promisePlaytryNetworkFail) Autoplay was prevented");
|
||||
player.pause();
|
||||
} else if (promisePlaytry <= 10) {
|
||||
//console.log("playerPlay: (" + promisePlaytry + ") Autoplay was prevented, trying to mute and play ***");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue