PDA

View Full Version : How to find out what move file types can be played?



Markus
12th December 2010, 18:15
Dear All,

I am looking for something similar to: QImageReader::supportedImageFormats()
which returns a string containing the supported file types.

I need this now for movie and audio files.

Any suggestion?
Markus

wysota
12th December 2010, 21:38
Played with what exactly? Phonon or QtMultimedia?

Markus
12th December 2010, 22:37
I am using Phonon but I need this for filtering the filetype in a file open dialog.

wysota
12th December 2010, 23:10
Guessing the extensions is not enough as file types are only containers for real video formats. Phonon can play anything your system has codecs for but it is impossible to determine upfront what file extensions can be handled by it.