Do you have any questions?
Print

Streamserver API example: cover request (medium)

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

$cover_medium_output = file_get_contents('https://www.shoutcast-tools.com/external/api/cover/shoutcast/medium.php?url=http://IP-ADRESSE:PORT');
$cover_medium_output_color = file_get_contents('https://www.shoutcast-tools.com/external/api/cover/shoutcast/medium.php?url=http://IP-ADRESSE:PORT&color=red');
echo $cover_medium_output;
echo $cover_medium_output_color;

Icecast KH

<?php

$cover_medium_output = file_get_contents('https://www.shoutcast-tools.com/external/api/cover/icecast/medium.php?url=http://IP-ADRESSE:PORT');
$cover_medium_output_color = file_get_contents('https://www.shoutcast-tools.com/external/api/cover/icecast/medium.php?url=http://IP-ADRESSE:PORT&color=red');
echo $cover_medium_output;
echo $cover_medium_output_color;

Color output

Based on the CSS color names or HEX code: https://www.farb-tabelle.de/de/farbtabelle.htm

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