filtering playable files in a collection
Thiago Macieira
thiago at kde.org
Thu Sep 3 06:52:27 BST 2009
Em Quinta-feira 3. Setembro 2009, às 06.38.45, Marcos Dione escreveu:
> I'm toying with phonon for a test media player. one of the things this
> media player is to scan a directory for playable files. now, I know I can
> ask the phonon backen for the mimetypes playable with it, but how do I
> filter the files found? f.i., how do I get the mimetype of a file? one
> simple solution would be to filter by extension, but then I would have to
> maintain the list of valid extensions and I don't like the solution
> anyways. so, any ideas? how do other players do it?
KDE has classes for detecting the MIME type of a file.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14 San Francisco, California: Nov 2 - 4
http://qt.nokia.com/qtdevdays2009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20090903/201efbba/attachment.sig>
-------------- next part --------------
_______________________________________________
kde-multimedia mailing list
kde-multimedia at kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia
More information about the kde-multimedia
mailing list