1
0
Fork 0

add record message

This commit is contained in:
Christopher Latza 2020-06-16 00:57:29 +02:00
parent 32254a9293
commit f36c521b71
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"embeds": [
{
"title": "RTMP Stream Offline!",
"description": "Der Stream ist jetzt vorbei!",
"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%%",
"color": 10952768
}
],

View File

@ -31,6 +31,9 @@ while(TRUE)
$jsonStartMessage = str_replace("%%adresse%%", $StreamURL, $jsonStartMessage);
$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' => [