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
New Developer
Posts: 3
Registered: ‎08-29-2008
My Device: Not Specified

RTSP video streaming problems

[ Edited ]

Hi

 

I'm working on a project which need to play the rtsp video on the application.

I find that "Multimedia Development Guide" has a piece of code about play the rtsp video on java application.

 

The BlackBerry smartphones with BlackBerry Device Software version 4.3.0 or later that support EVDO will support Real Time Streaming Protocol (RTSP) functionality.
>Invoke Manager.createPlayer(String locator). Pass the following parameter: A String that represents an RTSP locator.
Manager.createPlayer("rtsp://streaming.rim.com/streaming_video.3gp");

 

then change some of the JDE sample code in "embeddedmediademo" as below:

 

//InputStream is = getClass().getResourceAsStream("/media/BlackBerry.mp4");
//_player = javax.microedition.media.Manager.createPlayer(is, "video/mp4");

_player = javax.microedition.media.Manager.createPlayer("rtsp://rtsp.youtube.com/youtube/videos/8wpa2Qplm8M/video.3gp");

 

 

After I build and run the application failure occur:

API Failure (DE372) - BlackBerry Smartphone Simulator
-----------------------------------------------------
An unsupported API was called: DnsRegister

 

Appreciate anyone who can give me some advice on playing the rtsp video on it.

ThX Smiley Very Happy

 

Message Edited by lkihk on 08-29-2008 03:15 AM
BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: RTSP video streaming problems

What version of BlackBerry JDE are you using?

 

I tried this in version 4.3.0, 4.5.0 and 4.6.0 and it built without any errors.  Have you changed anything else in the sample?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 3
Registered: ‎08-29-2008
My Device: Not Specified

Re: RTSP video streaming problems

Hi MSohm

 

I'm using JDE 4.5.0 and I can Build the project without any errors too.:smileywink:

The fail is occur when I execute it on the default simulator and It also fail on the real BlackBerry Bold 9000:smileysad:

I have only change the code I post before, use the createPlayer() method with an url string.

 

I'm wondering shell I need to  create some I/O stream to establish the rtsp connection firt?

 

 

New Developer
Posts: 3
Registered: ‎08-29-2008
My Device: Not Specified

Re: RTSP video streaming problems

I also find that the API Failure (DE372) will also occur in default media player.

It failure when I use the default media player (in Simulator) to play a rtsp video from http://m.youtune.com.

Here is my steps:

 

1. Start up the MSD-CS

2. Start up the BB8300 Simulator

3. Applications -> Browser -> m.youtube.com -> click the video link.

 

It seems that the  failure is because of the rtsp connectionSmiley Indifferent??

 

 

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: RTSP video streaming problems

The BlackBerry Simulator does not support RTSP connections.  You will need a real BlackBerry to test this.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 1
Registered: ‎07-29-2009
My Device: Not Specified

Re: RTSP video streaming problems

Hi,

    I'm able to play the RTSP videos by using BB-9000-vodafone (OS - 4.6.0.92). have a try with this particular model. I could not play vidieos with rest of the devices.

 

Thanks

Srikanth Kodali.

Developer
Posts: 126
Registered: ‎06-08-2009
My Device: Not Specified

Re: RTSP video streaming problems

Hi,

 

Please try following code. it works for me.

 

 

public void videoStreaming(String url){ //url - rtsp url try{ BrowserSession browserSession = Browser.getDefaultSession(); browserSession.displayPage(url); browserSession.showBrowser(); }catch(Exception e){ System.out.println(" videoStreaming Exception :: "+e.toString()); } }

 

 

 

New Developer
Posts: 4
Registered: ‎01-29-2010
My Device: Bold 9000
My Carrier: -

Re: RTSP video streaming problems

Could you please provides a code sample to play streaming video on blac kberry bold 9000.

New Contributor
Posts: 2
Registered: ‎04-05-2010
My Device: RIM & 9000
My Carrier: ATT

Re: RTSP video streaming problems

Hi Sreekanth,

 

can you share the java source code to play RTSP video's.

 

Regards,

Ravi

Contributor
Posts: 48
Registered: ‎07-20-2010
My Device: Not Specified
My Carrier: developer

Re: RTSP video streaming problems

hi can u please provide the code sample