Streamserver API Beispiel: Prüfen wer sendet (Moderator oder AutoDJ)

November 12, 2020
STREAMPANEL FAQ

Ersetzen Sie im unteren Code “IP-ADRESSE” mit der IP-Adresse ihres Streamservers und “PORT” mit den Port Ihres Streamservers.

SHOUTcast V2

<?php

$djonline_output = file_get_contents('https://scripts.streampanel.net/cc/djonline_shoutcast2.php?url=http://IP-ADRESSE:PORT');
$djonline_output_color = file_get_contents('https://scripts.streampanel.net/cc/djonline_shoutcast2.php?url=http://IP-ADRESSE:PORT&color=red');
echo $djonline_output;
echo $djonline_output_color;

Icecast KH

<?php

$djonline_output = file_get_contents('https://scripts.streampanel.net/cc/djonline_icecast.php?url=http://IP-ADRESSE:PORT');
$djonline_output_color = file_get_contents('https://scripts.streampanel.net/cc/djonline_icecast.php?url=http://IP-ADRESSE:PORT&color=red');
echo $djonline_output;
echo $djonline_output_color;

Erweitern der Ausgabe

Hängen Sie den folgenden Parameter “ctext” also “&ctext=MeinText” an der URL hinten dran, können Sie die Textausgabe nach belieben erweitern.

SHOUTcast V2

<?php

$djonline_output = file_get_contents('https://scripts.streampanel.net/cc/djonline_shoutcast2.php?url=http://IP-ADRESSE:PORT&ctext=MeinText');
$djonline_output_color = file_get_contents('https://scripts.streampanel.net/cc/djonline_shoutcast2.php?url=http://IP-ADRESSE:PORT&ctext=MeinText&color=red');
echo $djonline_output;
echo $djonline_output_color;

Icecast KH

<?php

$djonline_output = file_get_contents('https://scripts.streampanel.net/cc/djonline_icecast.php?url=http://IP-ADRESSE:PORT&ctext=MeinText');
$djonline_output_color = file_get_contents('https://scripts.streampanel.net/cc/djonline_icecast.php?url=http://IP-ADRESSE:PORT&ctext=MeinText&color=red');
echo $djonline_output;
echo $djonline_output_color;

Farbliche Ausgabe

Basierend auf den CSS-Farbnamen oder HEX-Code: https://www.farb-tabelle.de/de/farbtabelle.htm

Erkennung des DJ / Moderators

Die Erkennung erfolgt anhand der folgenden Merkmale in der Titelausgabe des Streamservers.

  • dj_
  • Dj_
  • DJ_
  • dJ_
  • dj
  • Dj
  • DJ
  • dJ
  • |

Wenn weitere Erkennungen erwünscht sind bitte kurz mit Beispielen per Supportticket melden.


Vorherigen Eintrag aufrufenNächsten Eintrag aufrufen


0 0 votes
Eintrag bewerten
Abonnieren
Benachrichtigen Sie mich bei
guest
0 Kommentare
Inline Feedback
Alle Kommentare anzeigen