„start.php“ ändern
This commit is contained in:
parent
cabf418425
commit
d3821293c5
11
start.php
11
start.php
|
@ -55,10 +55,13 @@ while(TRUE)
|
||||||
echo "done.\n";
|
echo "done.\n";
|
||||||
|
|
||||||
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
|
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
|
||||||
|
|
||||||
echo "Sending end info to discord...";
|
if(($lastOnlineTime + 60) < time())
|
||||||
$result = file_get_contents($DiscordWebhook, false, stream_context_create($endOptions));
|
{
|
||||||
echo "done.\n";
|
echo "Sending end info to discord...";
|
||||||
|
$result = file_get_contents($DiscordWebhook, false, stream_context_create($endOptions));
|
||||||
|
echo "done.\n";
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
echo "ERROR: Image not generated!\n";
|
echo "ERROR: Image not generated!\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue