logger(1,'Unable to load or parse configuration file',1,true);
// Check settings
$_set_def=[
'rtmp'=>'',
'recordhls'=>false
];
foreach($_set_defAS$i=>$v)
if(!isset($_set->{$i}))
$_set->{$i}=$v;
// Loop indefinitely
while(true):
@ -69,10 +78,13 @@ while (true) :
if(@mkdir($output_directory))
{
logger(2,'All checks passed, starting ffmpeg');
notify('Recording','Restreamer API reported that repeating to local nginx is connected and the HLS endpoint is found. The HLS output is now being recorded. HLS URL is the following: '.$_set->hls.', Output directory is: '.$output_directory,2);
notify('Recording','Restreamer API reported that repeating to local nginx is connected and the HLS endpoint is found. The HLS output is now being recorded. HLS URL is the following: '.$_set->hls.', Output directory is: '.$output_directory,2);