BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-26-2009, 08: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

IBM 4610-2CR Receipt Printer, Check & Card Processor for Point of Sale - White
$99.99
IBM 4610-2CR Receipt Printer, Check & Card Processor for Point of Sale - White pictureCINCINNATI MILACRON 3-424-2123A02 /D 34242123A02 ACRAMATIC 2100 CPU PROCESSOR
$780.0
CINCINNATI MILACRON 3-424-2123A02 /D  34242123A02 ACRAMATIC 2100 CPU PROCESSOR  pictureEST SBC8240 Development Board XPC8240RZU250C CPU with case and P/S
$275.0
EST SBC8240 Development Board  XPC8240RZU250C CPU with case and P/S pictureIXMB425 Network Processor / IXCMB1100 Control Plane Processor Base Card
$1.0
IXMB425 Network Processor / IXCMB1100 Control Plane Processor Base Card pictureSIEMENS 6ES7 414-2XK05-0AB0 CPU MODULE
$962.0
SIEMENS 6ES7 414-2XK05-0AB0 CPU MODULE picture






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