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
Highlighted
New Developer
Posts: 10
Registered: ‎09-10-2009
My Device: Not Specified

Streaming Video Question

I am in the middle of writing an app that involves streaming a video into the app.  I have been reading all over the web about video streaming for BB.  The impression that I'm getting is that BB can only stream from an RTSP server.  Is that really true?  There is no possible way that I can stream over http?  The server that I use doesn't support RTSP, and I can't switch or build a new/different server at this point.  Am I just completely out of luck? 

 

I've tried invoking a browser session with the URL pointed to my video, but it just says Error 413: Content too large after loading for a bit.  I've tried accessing videos as small as 1.6mb with the same result.  Here's the code I used, pretty much straight from one of the video tutorials:

 

 

BrowserSession browserSession = Browser.getDefaultSession(); browserSession.displayPage("http://domainName.com/Movie.3gp"); browserSession.showBrowser();

 

I've also tried accessing it from a  MediaPlayer with no luck. 

 

Can I stream http if I'm on a wifi network (only tried the data network so far)?

 

I really appreciate any help, advice, and guidance anyone here can offer.

 

Thanks,

Bek

 

 

Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Streaming Video Question

If you want to stream from non-rtsp then you need to implement something to either download the full file to the file system or sd card and then open it, or create a data source and source stream to stream the file to a custom media player.
New Developer
Posts: 10
Registered: ‎09-10-2009
My Device: Not Specified

Re: Streaming Video Question

Thanks Martin.  I will try working with the options you've mentioned.  If I want to download the video as a data stream and put it back together in the app, do I have to do any special formatting or converting to the video itself before I post it to my server?
Developer
Posts: 157
Registered: ‎03-03-2009
My Device: Not Specified

Re: Streaming Video Question

I heard that Bold can support HTTP progressive downloading for playing large video file.By that I mean if I input into a Bold browser "http://..."

that points to a video file, it should start to play. 

 

Can anyone from RIM confirm it?

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

Re: Streaming Video Question

Streaming support also depends on the format of the video.  Refer to this link.

 

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

 

Here you can find a sample that shows how to buffer content within your application.

 

How To - Support streaming audio to the media application
Article Number: DB-00612

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

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: 10
Registered: ‎09-10-2009
My Device: Not Specified

Re: Streaming Video Question

Thanks for the links Mark.  I'll check them out and hopefully they will solve my problems.

 

-Bek