mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
dfec86f738
commit
37e90e3dfe
2 changed files with 8 additions and 4 deletions
|
@ -536,7 +536,7 @@ class PlayerSkins extends PluginAbstract {
|
|||
}
|
||||
|
||||
$js .= "}
|
||||
player.ready(function () {";
|
||||
player.ready(function () {console.log('player.ready');";
|
||||
|
||||
$js .= "player.on('error', () => {
|
||||
AvideoJSError(player.error().code);
|
||||
|
@ -557,12 +557,15 @@ class PlayerSkins extends PluginAbstract {
|
|||
$play = "player.volume(0);player.muted(true);playerPlayMutedIfAutoPlay({$currentTime});";
|
||||
}
|
||||
|
||||
$js .= "var err = this.error();
|
||||
$js .= "try {
|
||||
var err = this.error();
|
||||
if (err && err.code) {
|
||||
$('.vjs-error-display').hide();
|
||||
$('#mainVideo').find('.vjs-poster').css({'background-image': 'url({$global['webSiteRootURL']}plugin/Live/view/Offline.jpg)'});
|
||||
}
|
||||
" . implode(PHP_EOL, $prepareStartPlayerJS_onPlayerReady) . "
|
||||
}} catch (e) {
|
||||
console.error('error-display', e);
|
||||
}try {
|
||||
" . implode(' } catch (e) {console.error(\'onPlayerReady\', e);} try { ', $prepareStartPlayerJS_onPlayerReady) . " } catch (e) {console.error('onPlayerReady', e);}
|
||||
{$play}
|
||||
});";
|
||||
|
||||
|
|
|
@ -917,6 +917,7 @@ async function showMuteTooltip() {
|
|||
}
|
||||
|
||||
function playerPlayIfAutoPlay(currentTime) {
|
||||
console.log("playerPlayIfAutoPlay: forceCurrentTime:", currentTime);
|
||||
if (isWebRTC()) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue