Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Reading Id3 Tags from A SHOUTcast mp3 Radio Stream with PHP

shoutcast stream id3 tag meta php

  • Please log in to reply
No replies to this topic

#1 HasanKeyf


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts
  • Programming Language:C
  • Learning:C

Posted 01 November 2012 - 08:58 AM

Hi guys,

We have been started a new internet radio project. I'm still programming a flash player for our radio web site but I have some problems with it. I cant get the id3 metatags of the streaming songs. Flash can get id3 tags but the event can only be triggered when the mp3 file is loaded. Flash acts the stream as a single mp3 file so the stream can not be load. It streams continuously.

So I have done some research on internet and every one says that flash can not do this. The id3 tags has to be read from an other language, like PHP.
And I found this article. (http://www.smackfu.c.../shoutcast.html) It explains the main idea of reading id3 tags from the SHOUTcast stream. Unfortunately I haven't got any PHP skills. So I cant do anything :(

All I need is a very simple script that reads the id3 metadata (artist, song-title) from the stream for 5 seconds time intervals and write the data to a file (XML or TXT file)

If you would give a try, you can try your code with these stream (ip: port:8479) it will be online.
  • 0

Also tagged with one or more of these keywords: shoutcast, stream, id3, tag, meta, php

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download