Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 692
Registered: ‎08-09-2010
My Device: Not Specified

How get Song Title in Online Streaming for Audio?





i use this type coding so there are not get Song Title so how get Song Title in Online Streaming for Audio??

Regular Contributor
Posts: 98
Registered: ‎08-31-2010
My Device: BB-9700
My Carrier: Airtel

Re: How get Song Title in Online Streaming for Audio?

There is no any direct way to get the song title through streaming media until and unless your server component support one more request to get all details about the song.


One way by which you can get the song title is to parse the MP3 file. MP3 file actually contains a header before the actual media data. This header will have general information about the MP3 file. In that you would have tag information which contains the metadata of the file. In this tag you could get the title information.







Please mark kudos if you get the solution

Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: How get Song Title in Online Streaming for Audio?

As @Abhijit said, if it's an MP3 you can parse the ID3 tag that sits at the beginning of the file.


Though it wasn't made for streamed files and it wasn't made for anything other then the album art, http://supportforums.blackberry.com/t5/Java-Development/how-to-retrieve-ID3-art-Image-from-an-mp3-fi... has a parser I wrote that if you read the basic format of the ID3 tags you can easily modify to get the title... and artist, and whatever other tag the MP3 file has though again that is all if you have a MP3 in the first place.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Posts: 21
Registered: ‎02-10-2012
My Device: 8520, 9790
My Carrier: Airtel

Re: How get Song Title in Online Streaming for Audio?



How to get that ID3 tag??

can you pelase suggest some solution for how to retrieve the headers?