remove record
This commit is contained in:
parent
f36c521b71
commit
d969a2e3d0
|
@ -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
|
||||
}
|
||||
],
|
||||
|
|
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue