[Development] QML Audio on Android

nicola at nicoladefilippo.it nicola at nicoladefilippo.it
Tue Feb 4 08:51:10 CET 2014


Hi,
put your file in android/assets directory and from qml:

 MediaPlayer {
        id: playMusic
        source: "assets:/example.mp3"
    }


          Nicola


> Hi,
>
> I can't play any sound using qml Audio on android. I am putting the
> sound in a qrc, it works fine on desktop but not on Android.
>
> Does anyone know what it the correct way to play a sound on Android?
>
> Bruno.
>
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>





More information about the Development mailing list