Streamserver API Example: DJ / Moderator output images

November 12, 2020
STREAMPANEL FAQ

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

Also replace the parameter "cimgpath" with a directory of your website containing the DJ images.

SHOUTcast V2

<?php

$djimage_output = file_get_contents('https://scripts.streampanel.net/cc/djimage_shoutcast2.php?url=http://IP-ADRESSE:PORT&width=150&cimgpath=https://example.com/images/');
echo $djimage_output;

Icecast KH

<?php

$djimage_output = file_get_contents('https://scripts.streampanel.net/cc/djimage_icecast.php?url=http://IP-ADRESSE:PORT&width=150&cimgpath=https://example.com/images/');
echo $djimage_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
  • Dj
  • DJ
  • dJ
  • |

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


Call up previous entryCall up next entry


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