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
Regular Contributor
heretocode
Posts: 70
Registered: ‎12-19-2011
My Device: Bold 9780

How to play rtsp on blackberry

Hi all

         I need to play a rtsp url on blackberry.

         I found :-

                     Browser.getDefaultSession().displayPage("rtsp://");

                     It is not correct and give runtime error.

 

                     Player player = Manager.createPlayer(url);

         player.start();

                     it also gives run time error

 

MediaPlayer.isSuccess(int, int) line: 713    
MediaPlayer.unload() line: 891    
StreamingMediaPlayer.doDeallocate() line: 949    
StreamingMediaPlayer.mediaError(MediaPlayer, int, Object) line: 1410    
MediaEventListenerThread.dispatch(StreamingMediaPlayer, MediaPlayer, int, int, Object, Object) line: 190    
MediaEventListenerThread.run() line: 167    


Contributor
Vijay_YD
Posts: 23
Registered: ‎10-20-2011
My Device: Blackberry Z10

Re: How to play rtsp on blackberry

RTSP links can be played on BB devices without any errors...

 

can you please mention what APN yuo are using may be it could be APN problem..

Regular Contributor
heretocode
Posts: 70
Registered: ‎12-19-2011
My Device: Bold 9780

Re: How to play rtsp on blackberry

Hi vijay

I am running it on simulator.

Trusted Contributor
ankitagrawal
Posts: 141
Registered: ‎02-15-2012
My Device: 9800

Re: How to play rtsp on blackberry

BrowserSession browserSession = Browser.getDefaultSession();
browserSession.displayPage("rtsp://");

 

 

Use this, it wil works definitely.

 

Thanks,

 

Ankit

 

Please press like if u like it.

Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: How to play rtsp on blackberry

Iam facing the same proble can u please  answer my queries and supply  complete code 

 

 

BrowserSession browserSession = Browser.getDefaultSession();
browserSession.displayPage("rtsp://");

 

My queries are 

 

 

http://supportforums.blackberry.com/t5/Java-Development/Can-any-body-guide-me-to-play-a-rtsp-stream-...

 

 

http://supportforums.blackberry.com/t5/Java-Development/Error-Description-Resource-Path-Location-Typ...