[SOLVED] IOS & AUDIO
-
Hi,
my application don't play audio file with qml MediaPlayer.
I have added in my .pro:
@
QT += quick qml gui core multimediaQTPLUGIN += qtaudio_coreaudio
QTPLUGIN += qtmedia_audioengine
QTPLUGIN += qavfcamera
QTPLUGIN += qavfmediaplayer
@Also, if I set as a source file does not exist, on the console I do not even no error message.
@
MediaPlayer {
id: playMusic
source: "qrc:/audiotest/notexist.wav"
}
@What I wrong?
-
Do you have your RESOURCES set in your .pro with your qrc files ?
I see that there is an autoPlay to set to true if you want it to play . What exactly are you doing in your app ?"MediaPlayer":http://qt-project.org/doc/qt-5.0/qtmultimedia/qml-qtmultimedia5-mediaplayer.html#autoPlay-prop
-
i have qrc in pro file and the play begin after a click.
-
Does it work when running on Mac ?
-
I found a solution, to put together qml and audio file in the bundle.
I created this wiki page "IOS sound & image":http://qt-project.org/wiki/IOS_SOUND__IMAGE -
niqt: Your example project from Github doesn't work at all. It doesn't even start, because it can't find main.qml (it's included neither in *.pro file nor in resource file).
-
@niqt
Your github doesn't work and appears to be missing any code pertinent to your 'solution'?