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

Java Development

Reply
Developer
jtp5120
Posts: 298
Registered: ‎05-02-2010
My Device: Bold 9700
My Carrier: Verizon

RTSP URL passed into Invocation constructor. Video doesn't play.

How do I design the following? I have video that streams using RTSP.

 

Reading the following, Invoke the Media application

 

I was able to create the following, but I consistently return a white Screen with the text "Loading video..."

 

Can I pass a RTSP stream URL into the Invocation constructor alone, what else do I need to set-up?

 

String dataURL = getData.getTarget();
String[] mediaArgs = new String[]{BlackBerryContentHandler.MEDIA_ARGUMENT_VIEW_VIDEOS};

Invocation media = new Invocation(dataURL);
media.setResponseRequired(false);
media.setArgs(mediaArgs);
media.setID(BlackBerryContentHandler.ID_MEDIA_CONTENT_HANDLER);

Registry rg = Registry.getRegistry(Application.getApplication().getClass().getName());
rg.invoke(media);

 

--Todd

Windows 7 Enterprise 64-bit (6.1 Build 7600) | Java SE Runtime Environment (build 1.6.0_24-b07) | Eclipse Version: 3.6.2 [M20110210-1200] | BlackBerry Eclipse Plug-in: 1.3.0.201102031007-19 | Java Compiler level: 1.3 | Targeting devices running OS 5 | Simulators: JDE 5.0 packaged 9700, 9630, 9300
Please use plain text.
Developer
jtp5120
Posts: 298
Registered: ‎05-02-2010
My Device: Bold 9700
My Carrier: Verizon

Re: RTSP URL passed into Invocation constructor. Video doesn't play.

While this doesn't answer my question, I found that the following will properly open a RTSP stream.

Browser.getDefaultSession().displayPage(dataURL);

 Which leads me to believe that the Invocation constructor only takes the URL of http or local media?

 

Passing in a RTSP still results in a while Screen with the text "Loading video..."

--Todd

Windows 7 Enterprise 64-bit (6.1 Build 7600) | Java SE Runtime Environment (build 1.6.0_24-b07) | Eclipse Version: 3.6.2 [M20110210-1200] | BlackBerry Eclipse Plug-in: 1.3.0.201102031007-19 | Java Compiler level: 1.3 | Targeting devices running OS 5 | Simulators: JDE 5.0 packaged 9700, 9630, 9300
Please use plain text.