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
Regular Contributor
andreyavram
Posts: 76
Registered: ‎06-02-2012
My Device: Playbook, BB10

Play streaming sound media

Hello,

Can someone, please give me an example on how to play a file from an URL, an AAC/MP3 file. I managed to do this very simple using a MediaPlayer object in Cascades, but it seems to be more difficult without Cascades. My experience is very limited developing  C/C++ projects, I want to package this as a Webworks extension, my final goal being to be able to call a function with a URL paramater from JS and receive some events from the extension such as state,etc.

Can Cascades apps be packaged as Webworks extensions or it has to be pure Native?

 

Thanks!

Developer
step_jac
Posts: 89
Registered: ‎05-31-2012
My Device: BlackBerry Playbook

Re: Play streaming sound media

Hi Andray,

 

You should be able to plau audio from URL using MMR in pure native.

http://developer.blackberry.com/native/documentation/playbook/recipe_play_audio_1935324_11.html

 

Best,

 

Stephane

Regular Contributor
andreyavram
Posts: 76
Registered: ‎06-02-2012
My Device: Playbook, BB10

Re: Play streaming sound media

Thanks for your answer, it is what I was looking for! I didn't thought to search the PlayBook docs.