diff --git a/plugin/Live/getImage.php b/plugin/Live/getImage.php index 7d8a6ca41..581cfff8a 100644 --- a/plugin/Live/getImage.php +++ b/plugin/Live/getImage.php @@ -1,50 +1,50 @@ userCanSeeTransmition()){ - $uuid = $t['key']; + $uuid = $livet['key']; $p = YouPHPTubePlugin::loadPlugin("Live"); $video = "{$p->getM3U8File($uuid)}"; $url = $config->getEncoderURL()."getImage/". base64_encode($video)."/{$_GET['format']}"; if (empty($_SESSION[$url]['expire']) || $_SESSION[$url]['expire'] < time()) { $content = url_get_contents($url); if (session_status() == PHP_SESSION_NONE) { session_start(); } error_log(" Image Expired in ". date("d/m/Y H:i:s", @$_SESSION[$url]['expire'])." NOW is ". date("d/m/Y H:i:s")); $_SESSION[$url] = array('content' => $content, 'expire' => strtotime("+2 min")); error_log(" New Image will Expired in ". date("d/m/Y H:i:s", $_SESSION[$url]['expire'])." NOW is ". date("d/m/Y H:i:s")); } if(!empty($_SESSION[$url]['content'])){ echo $_SESSION[$url]['content']; error_log(" Cached Good until ". date("d/m/Y H:i:s", $_SESSION[$url]['expire'])." NOW is ". date("d/m/Y H:i:s")); }else{ echo file_get_contents($filename); error_log(" Get default image "); } } $p = YouPHPTubePlugin::loadPluginIfEnabled("Cache"); if(!empty($p)){ $p->getEnd(); } \ No newline at end of file diff --git a/plugin/Live/view/modeYoutubeLive.php b/plugin/Live/view/modeYoutubeLive.php index 02254977f..70ac672d2 100644 --- a/plugin/Live/view/modeYoutubeLive.php +++ b/plugin/Live/view/modeYoutubeLive.php @@ -1,142 +1,142 @@ getBdId(); $subscribe = Subscribe::getButton($user_id); $name = $u->getNameIdentificationBd(); $name = "{$name} " . User::getEmailVerifiedIcon($user_id) . ""; $video['creator'] = '
' . $name . '
' . $subscribe . '
'; $img = "{$global['webSiteRootURL']}plugin/Live/getImage.php?u={$_GET['u']}&format=jpg"; $imgw = 640; $imgh = 360; $liveDO = YouPHPTubePlugin::getObjectData("Live"); ?> - <?php echo $t['title']; ?> - <?php echo __("Live Video"); ?> - <?php echo $config->getWebSiteTitle(); ?> + <?php echo $livet['title']; ?> - <?php echo __("Live Video"); ?> - <?php echo $config->getWebSiteTitle(); ?> - - getWebSiteTitle(); ?>" /> - " /> + - getWebSiteTitle(); ?>" /> + " /> userCanSeeTransmition()) { ?>

- +

-

+

disableDVR)) { ?> getChat($uuid); } ?> diff --git a/plugin/Live/view/videoEmbeded.php b/plugin/Live/view/videoEmbeded.php index 4c78086e7..474ed6fab 100644 --- a/plugin/Live/view/videoEmbeded.php +++ b/plugin/Live/view/videoEmbeded.php @@ -1,148 +1,148 @@ verifyEmbedSecurity(); } ?> <?php echo $config->getWebSiteTitle(); ?>
getNextLiveApplicationFromUser($user_id); } foreach ($html as $value) { echo $value['html']; }; ?>
disableDVR)) { ?> diff --git a/plugin/Live/view/videoEmbededV2.php b/plugin/Live/view/videoEmbededV2.php index ccfd7a4a1..17302d663 100644 --- a/plugin/Live/view/videoEmbededV2.php +++ b/plugin/Live/view/videoEmbededV2.php @@ -1,191 +1,191 @@ verifyEmbedSecurity(); } ?> <?php echo $config->getWebSiteTitle(); ?>
getChat($uuid); ?>
getNextLiveApplicationFromUser($user_id); } foreach ($html as $value) { echo $value['html']; }; ?> disableDVR)) { ?>