thanks for the suggestion. Actually I found out that mpg123 does support playing a live stream (both ShoutCast and IceCast) but one important thing it doesn't do is pick up (or at least display) the name of the track it's currently playing... I've probably looked through the code sufficiently that I could patch it but I need to understand more about the streaming thing... here's one thing that puzzles me: if I look at the output of a ShoutCast playlist e.g.:
I get (along with other data) a list of url's like this:
...now, the curious thing is that if I start listening to the first url, it will play a song and when that song ends, it continues with another song! so the obvious question is why is there more than one url in the playlist?
Another odd thing is that the Length attribute for each entry in the playlist (see below) is -1... so how does my player know when to stop listening to that url and start listening to the next?
alternatively, if the player doesn't ever need to quit listening to the 1st url, then how does it know the length of the song so it can tell when the sream no longer contains raw music data but headers for the next song?
Title1=(#1 - 4/5) D I G I T A L L Y - I M P O R T E D - European Trance, Techno,
Hi-NRG... we can`t define it!
I know these are a lot of questions but any answers that can lead me to a better understanding would be greatly appreciated.