How to play mp3 file
-
Hello,
I'm using Qt5.2 and I've already have installed mpg123.Whenever I try to play anything with QMediaPlayer I got the following warning and no audio:
@
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
@Perhaps I miss something but I can't figure out...
-
What distro are you using? How did you install Qt 5?
-
Did you build Qt 5 yourself too?
QMediaPlayer uses GStreamer 0.1 as the audio backend on Linux. You need to install GStreamer dev libraries, with the relevant GStreamer plugins for decoding MP3 data.
-
Where did you get your custom buildroot from?
-
Looks like a neat project. I've never seen it or used it before unfortunately, so I don't have an exact solution.
But in general. you need GStreamer 0.1, plus a GStreamer MP3 decoding plugin. You need to make sure GStreamer (the dev libraries) is installed BEFORE you compile Qt.
If you need more help, perhaps the Buildroot developers/community know more details.