Playing QML Audio or Multimedia from qrc not working on Android

  • Hi,
    I was trying to play a sound file with the QML Audio or MultiMedia components from qrc, but it doesn't work on Android.

    Running the same code on Windows works.

    Based on "this bug report":, playing audio files from resources should work since Qt 5.2.1. I tried both with Qt 5.2.1 and the latest Qt 5.3 RC but only get this onError output:

    @ErrorCode: 5
    ErrorString: (Unknown error/Insufficient resources)

    and this error pops up in the console too:
    @E/MediaPlayer(17306): Error (1,-2147483648)@

    I tested on a Sony Ericsson Xperia and Huawei Ascend, both the same errors.

    Anyone experiencing the same issues or has a fix for this?


  • Using the Audio or MultiMedia QML elements to play from resources also does not work on iOS and Mac! You can give this issue a vote in the bug tracker here:

  • My mistake (of course), the qrc prefix was the same as the folder name and I didn't use both in the url. DOH, sorry folks.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.