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
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified
Accepted Solution

Doubt in playing audio

Hi ,i am developing an application to play an streaming audio file,
i got to know that mp3 is not supported for streaming (Real Time Streaming Protocol (RTSP)) thr this document

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB05482&sliceId=SAL_Pub...

Incase if Mp3 to be supported,then we have to do it own.and i got to know abt this

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/1089414/How_To...



any sample codes to play an audio file  that uses RTSP protocol will be helpful


Is there any possibilty in invoking the  ( Media )player that is present in the applications section to play the streaming file?


Regards

Rakesh Shankar.P

Developer
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified

Re: Doubt in playing audio

HI Guys,I got to know that we can play the RTSP file via Media player thr the following link

 

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/1089414/Stream...

 

 

and What i got is that player is invoked,but i get the error such as "Content not Available-Server Blocked".I dont know that it is due to outdated links or due to error

 

this is code that i used

 

 

 String url1="rtsp://62.217.247.139:554/dav/live7gprs.3gp";
        Browser.getDefaultSession().displayPage(url1);

 

 

I got the the following errors  as  RTSPInitialRTSP

 

 

I dont know what the problem is,whether due to the RTSP link or code.Any Sugggestions will be helpful.

 

 

Regards

 

Rakesh Shankar.P

 

 

Developer
Posts: 178
Registered: ‎08-26-2009
My Device: Not Specified

Re: Doubt in playing audio

That should work fine. Try with a different link,

 

rtsp://v5.cache4.c.youtube.com/CkYLENy73wIaPQnzMhJdYPO5OhMYESARFEIJbXYtZ29vZ2xlSARSBWluZGV4Wg5DbGlja1RodW1ibmFpbGCn2Ln6huy600sM/0/0/0/video.3gp

 

 

Try that. If it doesnt work post, back.

Developer
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified

Re: Doubt in playing audio

Thanks a lot Hades for your help,it worked,

 

incase where and how to find thesample  RTSP Links in you tbube  or anything ,any ideas

Highlighted
Developer
Posts: 178
Registered: ‎08-26-2009
My Device: Not Specified

Re: Doubt in playing audio

http://m.youtube.com/

 

Click on a video, right click the hyperlink 'watch now' and view properties Smiley Happy

 

 

Developer
Posts: 168
Registered: ‎11-22-2009
My Device: 9000 Bold, 8300 Curve

Re: Doubt in playing audio

When I type the url: 

rtsp://v5.cache4.c.youtube.com/CkYLENy73wIaPQnzMhJ

dYPO5OhMYESARFEIJbXYtZ29vZ2xlSARSBWluZGV4Wg5DbGlja1RodW1ibmFpbGCn2Ln6huy600sM/0/0/0/video.3gp

 

Into my Blackberry browser I get the error "Cannot find web address...". I'm using a BB Bold on OS 5.0.

 

Am I doing something wrong here?