How to read radio stream info?
BlitzMax Forums/BlitzMax Programming/How to read radio stream info?
| ||
Hello again! I'm planing on an writing a simple internet radio player. My problem is: How do I read the meta data that is included in the mp3-stream, such as "Station Name" and "Current Title"? Example from Winamp: ![]() Can I do this with MAXmod or FMOD? Grisu |
| ||
I've got shoutcast working nicely with my BASS module, although I haven't tried retrieving the metadata from it as yet. I guess it's on there somewhere. |
| ||
Oooh... seems it does work :DebugLog:ICY 200 OK DebugLog:icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR> DebugLog:icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR> DebugLog:icy-name:S K Y . F M - Simply Soundtracks - a wide variety of Soundtracks from Movies, show themes, & more! DebugLog:icy-genre:Film Classical Soundtracks DebugLog:icy-url:http://www.sky.fm/soundtracks/ DebugLog:icy-pub:1 DebugLog:icy-metaint:8192 DebugLog:icy-br:96 :-) FYI, this is what the code looks like : Local tags:String[] = channel.getTags(BASS_TAG_ICY) |
| ||
Haven't even thought of the bass module. Thanks for the hint. It's just that I don't want to reinvent the wheel here... |
| ||
Just saw, you were faster... Looking great. Is there a complete bass interface / module to download somewhere? Haven't wörked with it yet at all. :/ Are there any license limitations? |
| ||
There are around here somewhere. Mine is still available only via SVN (until it's finished), from http://code.google.com/p/maxmods/ So, if you aren't up on SVN, you may wish to look elsewhere for now. Example 6 would be of interest here, since it shows shoutcast usage. |
| ||
Thanks a lot Brucey! Could you point me to the svn subdir as I'm using a plain batch file for checking? http://blitzbasic.com:81/svn/blitzmax/dev/? |
| ||
I think it's something like : http://maxmods.googlecode.com/svn/trunk/bass.mod |
| ||
Cheers! Edit: 1. Still getting some heavy crackeling background sounds out of nowhere. On some channels they are very seldom on others like the example one there are insane. 2. Meta data "BASS_TAG_ICY" Does it also give some like the current title. Couldn't find a name tag for this? Still experimenting around.... |
| ||
Seems like there's an extension for the bass.dll in order to display all sorts of fancy tags. "Tags An extension producing formatted text from the ID3v1/v2, OGG/FLAC, WMA, or APEv2 tags of a BASS stream. C/C++, Delphi, and Visual Basic APIs are included." - http://www.un4seen.com/ Though this stuff is far too high for me... :( Could someone please test my example to verify the sound issues? |