How can we help?

They're here:
Print

Streamserver API Example: Check who is sending (Moderator or AutoDJ)

In the code below, replace "IP ADDRESS" with the IP address of your stream server and "PORT" with the port of your stream server.

SHOUTcast V2

<?php

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

Icecast V2

<?php

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

Extending the output

Hang the following parameter { "ctext". Sync and corrections by n17t01 "&ctext=MyText" at the end of the URL, you can expand the text output as desired.

SHOUTcast V2

<?php

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

Icecast V2

<?php

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

Recognition of the DJ / presenter

Detection is based on the following features in the title output of the stream server.

  • dj_
  • Dj_
  • DJ_
  • dJ_
  • dj (space)
  • Dj (space)
  • DJ (space)
  • dJ (space)
  • | (space, |, space)

If you want to know more, please send a short message with examples via support ticket.

0 0 votes
Rate entry
Subscribe
Notify me at
guest
0 Comments
Inline feedbacks
View all comments