BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-26-2009, 07:35 AM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8900
PIN: N/A
Carrier: aaaa
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTP 3gp video playback buffering online

Please Login to Remove!

Hi everyone!

I have a BIG problem playing video from http resource. HTTP is a must for me because of client's requirements.
For testing I have .3gp video file with size of 1.5 MB on http server. I can play this file on Blackberry if it is stored locally on SD card with no problems. Problems start when I try to play it from server...

FileConnection con = (FileConnection) Connector.open("http:..../test.3gp");
InputStream is = con.openInputStream();
Player player = Manager.createPlayer(is, "video/3gpp");
player.realize();
VideoControl videoControl = (VideoControl) player.getControl("javax.microedition.media.contro l.VideoControl");
videoControl.initDisplayMode(VideoControl.USE_DIRE CT_VIDEO, this);

videoControl.setDisplaySize(150, 150);
videoControl.setDisplayLocation(0, 0);
videoControl.setVisible(true);

player.prefetch();
player.start();

I have blackberry 8900 and a 8900 simulator. Tested on both.
So, the problem is that I see that blackberry starts downloading this file but never plays it... shows nothing except loading progress...

Can someone tell me how to stream/buffer this video so that player downloads it by chunks and starts playing it immediately after receiving first chunk of data.

Any help is really appreciated.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.