Ha, let me answer my own question in post #2.
When you know the server IP and port you can open a socket connection to it and retrieve the stream information as I found on the
winAmp forums.
I took this piece of PHP code and tested a bit with it, to see if it has the desireable results.
PHP Code:
<?php
$ip = "205.188.215.231";
$port = "8016";
$open = fsockopen($ip,$port);
if ($open) {
fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
$read = fread($open,1000);
$text = explode("content-type:text/html",$read);
$text = explode(",",$text[1]);
}
else {
$er="Connection Refused!";
}
if ($text[1]==1) { $state = "Up"; } else { $state = "Down"; }
if ($er) {
echo $er;
exit;
}
echo "<font face=verdana size=1>
Listeners: $text[0] of $text[3] ($text[4] Unique)<br>
Listener Peak: $text[2]<br>
Server State: <b>$state</b><br>
Bitrate: $text[5] Kbps<br>
Current Song: $text[6]<br>
</font>";
?>
You can see this script at work at:
http://ansuz.nl/bla/streamInfo.php
It does give you almost all the information you want. The only thing I'm missing is the stream name.
The thing is, this is all nice and fun, but useless when you don't know the server's ip and port. So let's say you're able to get all radio stations from shoutcast.com, but they only provide you a list with urls to use to tune in to the station.
My test case with this showed a big problem with this method right away.
The URL I used is:
http://www.snakenetmetalradio.com/Snakenet-96k.asp
This URL is located on the following IP: 130.94.243.192
BUT, the actual shoutcast server is located on this IP: 205.188.215.231 and port: 8016.
So even if you were able to retrieve the IP of an url some way in Flash, you're still only guessing that the shoutcast server is running on the same IP. After that you also have to guess the port number.
All in all I didn't really get any further, unless I decide to build my own list with radio stations in XML and fill that with the right info (like IP, port, stream name, etc.) myself.
Well, I love how this monologue is going, but hopefully this will help somebody some other day.
Or maybe there is someone able to help me with this?