Reading Media File Details (Java API forum at Coderanch) (original) (raw)
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Dear Ranchers,
I want to make a Media Organizer which allows a user to edit his music file details as one of the features.
For that I need to know how to access those details (like Title, Artist, Genre).
I went through Java Media Framework and seriously all I understood was that it provides a player for playing media files.
Is JMF the package that will provide me with classes and methods to access those details?
If not, then which is it?
With Best Regards,
Shyam Prasad Murarka
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
JMF encapsulates generic playback and editing capability, so I don't think it supports functionality that only a few file formats have. (I'm assuming you're talking about MP3).
A quick Google search finds several Java implementations purporting to be able to read and write ID3 tags.
Shyam Prasad Murarka
Ranch Hand
Posts: 209
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Dear Rancher,
Thank you very much for the links. You guessed it right, I was looking for MP3 tags itself. But I did not want third-party API's. Instead I wanted to develop my own library. Luckily I followed a link to www.id3.org where I can learn about the tagging in detail.
I am guessing I will have to use the Java Sound API for this. Isn't it?
With Best Regards,
Shyam Prasad Murarka
Ulf Dittmer
Rancher
Posts: 43081
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
I don't think the Sound API supports ID3 tags, either, so a 3rd party library -either of your own making or from someone else- seems like the way to go.
Ulf Dittmer
Rancher
Posts: 43081
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note: