PDA

View Full Version : Phonon: how to recognize a media file?



YaK
16th April 2009, 17:33
I have a file path. How can i know if there is a media file, supported by my backend? And then if it is a media file how can i read its ID3 tags?

wysota
17th April 2009, 08:03
The only automatic way is to try to open it. Alternatively you can use an external library to query the file for its type, codec and data but then your application probably won't be portable anymore.