Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from stackoverflow.com Mar 15 '11 at 4:18

This question came from our site for professional and enthusiast programmers.

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.