Error when using QMediaPlayer on IOS
-
wrote on 10 May 2015, 22:43 last edited by
So here is my problem.
When i use the mediaPlayer from QtMultimedia in my qml file i get the error: defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplyer"The app works fine when i use it on Windows or android, only get this error on iOS.
Anyone know anything about this?
Best regards,
John -
-
wrote on 10 May 2015, 23:06 last edited by
Ok great! Thanks for the links, I added QT+= multimedia to my .pro file but now i get the error "Failed to load media" instead. So I'm guessing i need to statically link the mp3 file I'm trying to play as well? How do i do that?
Thanks for the help!
//John
-
Depending on the file size, you can use the Qt Resource System, or bundle the files
-
Depending on the file size, you can use the Qt Resource System, or bundle the files
wrote on 11 May 2015, 00:04 last edited by Wonderlust 5 Nov 2015, 00:04Hmm, I'm still not getting it to work...
I have the file in my qml.qrc but it's not working, could you maybe give me an example of what my .pro file should look like to get the .mp3 file into the app? -
I just realized something: I'm not sure whether the QtMultimedia plugins can handle files found in QRC. So I'd first go with the assets to provide multimedia content with an application since most of the time anyway, these files are already compressed (mp3, mp4 etc.) and generally too big to be compiled in.
2/6