Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 49
Registered: ‎05-02-2012
My Device: Bold 9790
My Carrier: Wind Mobile

MediaPlayer in QML

Hi there,


I'm brand new to BB10 development and I'm trying to make an app that plays simple sounds. However, in the QML I always get the warning:

"asset:///sounds/[name].mp3" is not a supported asset file


Where can I put my files so that the sourceUrl for the media plater can find them?


Secondarily, can I do this in the QML?

onClicked: {

    audioPlayer.setSourceUrl("asset:///sounds/[different sound].mp3");



Thanks so much,


Posts: 692
Registered: ‎08-09-2010
My Device: Not Specified

Re: MediaPlayer in QML

Hi beenjaminnn,


  Please check below link i hope this link help ypu...








feel free to press the like button on the right side to thank the user that helped you.

Posts: 145
Registered: ‎12-23-2012
My Device: BB10 Dev Alpha
My Carrier: wifi

Re: MediaPlayer in QML

For testing , you can try to put that in to phone storage, see it you are able to access the file.