1
0
Fork 0

remove record

This commit is contained in:
Christopher Latza 2021-02-18 16:51:46 +01:00
parent f36c521b71
commit d969a2e3d0
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"embeds": [
{
"title": "RTMP Stream Offline!",
"description": "Der Stream ist jetzt vorbei!\n\nDu kannst dir eine Aufzeichnung anschauen. Öffne dazu den VLC Media Player, klicke oben links auf Medien und wähle Netzwerkstream. Dort trägst du dann folgene Adresse ein:\n\n%%record%%",
"description": "Der Stream ist jetzt vorbei!",
"color": 10952768
}
],

View File

@ -33,7 +33,6 @@ while(TRUE)
$jsonStartMessage = str_replace("%%vorschau%%", "https://files.clatza.dev/tmp/rtmp/".$fileName, $jsonStartMessage);
$jsonStartMessage = str_replace("%%record%%", "https://files.clatza.dev/tmp/rtmp/".$videoFileName, $jsonStartMessage);
$jsonEndMessage = str_replace("%%record%%", "https://files.clatza.dev/tmp/rtmp/".$videoFileName, $jsonEndMessage);
$startOptions = [
'http' => [
@ -58,7 +57,7 @@ while(TRUE)
echo "done.\n";
$lastOnlineTime = time();
system("rtmpdump -r ".$StreamURL." -m 15 -o tmp/rtmp/".$videoFileName);
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
if(($lastOnlineTime + 10) < time())
{