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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>


_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to