Streamserver API Example: Cover Request (Large)

June 11, 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.

SHOUTcast V2

<?php

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

Icecast KH

<?php

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

Color output

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


Call up previous entryCall up next entry


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