Radio Players - Ajax - Flash and all that jazz
Have been playing around with getting mp3 streams to play in flash. It turns out icecast streams are very easy to play but shoutcast ones aren’t so obviously easy, but when you know how they are. It turned out that simply appending ‘;stream.nsv&type=mp3′ to the end a shoutcast url would make it playable. Quite why I am not entirely sure but it works.
Anyway my first attempt at a somewhat basic radio player can be found here:
http://davidmadelin.com/radio.html
The flash playing bit is hidden in the background and javascript is used to communicate with it telling it what to play.
I put all the feeds in an xml file which is loaded in javascript and dumped to the screen as a clickable list.
The flash widget has api functions to change the volume and stop play etc but I’ve yet to implement on screen buttons for them.

![[popup] [popup]](http://www.davidmadelin.com/wp-content/plugins/shout-stream/popup.png)