SHOUTCAST Metadata the easy way

No Comments

When I was developing FireRocker, one of my biggest challenges was to figure out an easy way to get the audio metadata. The classic way is to read the value of a HTTP header and see how many bytes I have to wait for until the metadata is sent. Seems like a bit confusing, hum? Luckily, there’s THE easy way! SHOUTcast streams have an HTML page which you can download and parse to get the audio metadata. Say I have the following URL:

http://94.186.155.82:8044

Just add a /7.html to the end of it.

http://94.186.155.82:8044/7.html

If you downloaded this HTML file and opened it with a plain text editor, you’d see something like this:

<HTML><meta http-equiv="Pragma" content="no-cache">
</head><body>153,1,257,1500,153,32,Adrian - Lacrimi
de iubire bY www.FmRadioManele.ro</body></html>

Cool, isn’t it? Now let’s parse it. You can do it in any language, but I will teach you how to write a nice app in Objective-C. Create a new project and name it SHOUTcast metadata(or any name you want). Open your AppDelegate.h and add the following IBOutlets:

More

Michael Jackson & Janet Jackson – Scream

No Comments

It’s been a year since MJ is gone :(

1 Comment

My favorite singer/musician/dancer died exactly one year ago. I still remember about that day. I was in a car with my mom. Suddenly the radio started talking about MJ. I wasn’t paying attention on that when my mom said “Hey, look”. They were talking about a rumor of Michael Jackson’s death. I thought “It can’t be true, I just became a fan of his. He can’t be dead”. But unfortunately, he was. :(

I became a fan of his in February 2009. Before this, I just knew MJ as “pedophile”. I didn’t even know his work. I first heard one of his songs on the “King Of Pop: Brazilian Collection” CD commercial. I started to like that song. I saw on the commercial it was called “Thriller”. I searched for it on the web and… found it! It quickly became my favorite song. I used to listen to it all the time. Then  I searched for the music video on Youtube. My first impression was “Wow, I’ve never ever seen any one dance like he does”. I also “heard” some of his other songs on Youtube. Believe or not, I didn’t like them(excepting by Bad). When you hear the first 5 seconds of a song, you can’t really say if you like it or not. Then I recorded the song from the Pepsi Cola commercial. I thought that was a song created for the Pepsi commercial, but I was wrong. The song was a modified version of Billy Jean. The commercial I’m talking about is this one(and no, this is not the one where he got burned):

More

Smooth Criminal music video

1 Comment

One of the best songs EVER!

More