Last summer I went on a vacation with my family to Britain and France. While we were in France, specifically Paris, I found a radio station that I actually enjoyed ( as opposed to the crap where I live ). This radio station was called Oui FM. I wasn’t able to understand much of what was being said but I was able to catch a web address. Ouifm.fr . (Oui.fm would have been much better.)
Upon arriving back in my home country I decided to check out their site. I was pleased to find a live stream of the station! I “tuned in” and began listening to the same great stuff. Around mid-winter I stopped listening. I dont know why, I just didnt feel like it anymore. Recently, however, I came back to find a flurry of new songs that I had not heard, but liked all the same. Problem was that Windows Media Player wouldent tell me whats playing. thats when this project started.
I started by going to Oui FM’s home page. once there I found this flash app that gives the artist and song that is currently playing. I fired up SmartSniff (a smaller and faster wireshark like program) and loaded the flash app, it happily divulged where it was getting the information. It was coming directly from the site, right here in fact. I wrote a quick php script that took the data, parsed it, made it look a little nicer (caps, etc.), and put it into xhtml. Now I needed a way to play it without the song being interuppted. i settled on using the JW Media player to play the stream and ajax to update the page.
you can see the working script here: Oui FM player . I advise doing just that, they tend to have good music playing.