QT and audio files
-
Hello,
I want to create a small audio player, which can play different formats like mp3, mp4 etc. I also want to get informations from the audio file like artist etc. But I dont want to install an extra audio player on my plattform, so everything has to be done with coding. Is this possible with QT?
-
Hi,
Have a look at the "Phonon module":http://qt-project.org/doc/qt-4.8/phonon-module.html
As a side not, it's spelled Qt, QT is for Apple's QuickTime
Hope it helps
-
Yes phonon should help you.
This link is an example of phonon : http://qt.developpez.com/doc/4.6/phonon-qmusicplayer/ -
Does it also work with Qt 5? Because when I try to add phonon to the pro file, I get linking errors. When I searched google it seems like phonon is no longer supported in Qt 5 and that I have to use qtmultimedia, is that right?
-
QMultimedia is good enough with playing media files, and there's also a Qt class to read mime data (I'm sure it's included in QMultimedia) so you'll be fine.