Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
amardeepjaiman
Posts: 286
Registered: 02-25-2009

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 ?

 

 

 

Please use plain text.
Developer
rcmaniac25
Posts: 1,713
Registered: 04-28-2009
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.

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo 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.

Projects:
Bing 4 BlackBerry: http://bbing.codeplex.com/
PDF Renderer 4 BlackBerry: http://pdfrend4bb.codeplex.com/
Please use plain text.
Developer
amardeepjaiman
Posts: 286
Registered: 02-25-2009

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.

 

 

Please use plain text.
Developer
rcmaniac25
Posts: 1,713
Registered: 04-28-2009
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.

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo 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.

Projects:
Bing 4 BlackBerry: http://bbing.codeplex.com/
PDF Renderer 4 BlackBerry: http://pdfrend4bb.codeplex.com/
Please use plain text.