Welcome!

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

Reply
Developer
Posts: 293
Registered: ‎02-25-2009
My Device: Not Specified

additional information of media file

Hi all,

 

Can anybody tell me we can retrieve the addition infrmation(album name, genre etc) of a media file ? if not, then is ther any workaround for this ?

 

 

 

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

Re: additional information of media file

Any media file or a specific type? For example MP3 has ID3 tags that you read the beginning of the file and can get any tags that it has for artist, album artwork (How to retrive ID3 art image from an .mp3 file), etc.

---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.
Developer
Posts: 293
Registered: ‎02-25-2009
My Device: Not Specified

Re: additional information of media file

i just wanted to get the info for any media file. one more thing reading file tags in header could be cumborsome process when we go to read them for multiple files.

 

Does BB store this information anywhere ? so that reading that file or using any api we can get the required info. ultimately i want to sort the media files on the basis of album, genre and all.

 

 

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

Re: additional information of media file

I can't find any APIs that would let you get that information so it appears you will need to read the files to get the information. Tags may be cumbersome but they also store all information in one location. As for does BlackBerry keep the information, I would say yes (based on the fact that after you unplug the BlackBerry from USB it says it is scanning the media files but it doesn't do that every time you open the media app) but I don't know how to get it.

---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.