I'd like to embed simple audio player on my webpage and I want it to get the audio from a stream broadcasted from my server. I read I can use IceCast on my web-server, getting an audio stream from a client using IceS (or this is what i got from other questions and articles) but once I have my stream, IceCast is supposed to broadcast it on an URL, that can be opened from pkayers like winamp or similar. I've found out this is quite a rare topic, usually people just want to broadcast "radio" where files are taken from a static playlist. In this case I have to get a stream from an IceCast URL and embed it with a player on a web page. Thank.
migrated from stackoverflow.com Mar 15 '11 at 4:18
This is quite straightforward actually. I think if you search around for "SHOUTcast" instead, you will find a lot more out there.
SHOUTcast/IceCast use a protocol that is (nearly) compatible with HTTP. Therefore, (most) any player that can play MP3 streaming over HTTP is capable of playing a SHOUTcast compatible stream.
You will find that there are many Flash players for this sort of thing.
One thing I should point out though. If you are using Flash, use a Flash player that is actually designed to work with internet radio. The reason for this is that older versions of Flash would download all of the audio into memory for playing back later. This was because they were originally designed for a minute or two of looping background music for some game, and it would save it in memory to be played again. With Internet Radio, we of course won't be playing the start of the program again, and want to discard that. With ActionScript 3 and later (and with some hacks in AS2), this is possible, and many of the players now take advantage of the stream-it-and-forget-it methods.