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

Web and WebWorks Development

Reply
Contributor
vanaturwms
Posts: 23
Registered: ‎04-29-2010
My Device: Storm 9500

Streaming audio in widget

Hi! 

Is there any way to play streaming audio with a widget? 

Thanks!

Please use plain text.
BlackBerry Development Advisor (Retired)
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Streaming audio in widget

No, RTSP streaming is not supported from within a widget. 

 

The reason why is because the underlying BrowserField2 object used by the Widget framework does not have a request handler assigned to the RTSP protocol (it does for other protocols, like http, https, local, file, etc).

 

I'd recommend instead invoking the native BlackBerry Media application, passing it the URL of the audio stream.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Contributor
vanaturwms
Posts: 23
Registered: ‎04-29-2010
My Device: Storm 9500

Re: Streaming audio in widget

Hi Adam!

 

In API widget documentation I don't  see how to invoke the native middle application:

 

http://www.blackberry.com/developers/docs/widgetapi/

 


I used this but does not work:

 

var args = new   blackberry.invoke.JavaArguments('net_rim_bb_medialibraryplayer');
blackberry.invoke.invoke(blackberry.invoke.APP_JAVA, args);  // Java


What is the module to pass it as parameter to JavarArguments?

 

Thanks!

Please use plain text.