Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/9098
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed May 31, 2024
1 parent 7ddff4f commit 282b30c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ HTTPS_PORT=443
NGINX_RTMP_PORT=1935
NGINX_HTTP_PORT=8080
NGINX_HTTPS_PORT=8443
PHPMYADMIN_PORT=8081
PHPMYADMIN_ENCODER_PORT=8082

# Database configuration
DB_MYSQL_HOST=database
Expand Down
7 changes: 6 additions & 1 deletion plugin/Live/Live.php
Original file line number Diff line number Diff line change
Expand Up @@ -1570,13 +1570,18 @@ public function getStatsObject($live_servers_id = 0, $force_recreate = false, $t
public function createCacheStatsObject($live_servers_id = 0, $requestStatsTimout = 15)
{
if (!function_exists('simplexml_load_file')) {
_error_log("Live::getStatsObject: You need to install the simplexml_load_file function to be able to see the Live stats", AVideoLog::$ERROR);
_error_log("Live::createCacheStatsObject: You need to install the simplexml_load_file function to be able to see the Live stats", AVideoLog::$ERROR);
return false;
}
global $global;
if (!isset($global['isStatsAccessible'])) {
$global['isStatsAccessible'] = array();
}

if(!AVideoPlugin::isEnabled('Live')){
_error_log("Live::createCacheStatsObject: live plugin is disabled", AVideoLog::$DEBUG);
return false;
}
$name = "live_servers_id_{$live_servers_id}_getStatsObject";
$cacheHandler = new LiveCacheHandler();
$cacheHandler->setSuffix($name);
Expand Down

0 comments on commit 282b30c

Please sign in to comment.