If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

Welcome!

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

Reply
Super Contributor
JeffLemon
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Playing an MP3?

MediaPlayer mp(this);
	mp.setSourceUrl(QUrl("/accounts/1000/shared/music/1.mp3"));
	mp.prepare();
	mp.play();

 I use the above code to play an MP3 from my device. The file is tehre and I can access shared files.

 

Am I missing something?

 

Thanks

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Please use plain text.
Contributor
mhkhung
Posts: 26
Registered: ‎12-11-2012
My Device: 9900
My Carrier: Rogers

Re: Playing an MP3?

This used to work fine with the "file:///accounts/1000/..." syntax until the current (production) device build.. 

Please use plain text.