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

Tektronix DC503A Frequency Counter with manual and TM503 Mainframe
$101.61
Tektronix DC503A Frequency Counter with manual and TM503 Mainframe pictureHP E1401B VXI High Power MainFrame W/O Cards T18102
$125.0
HP E1401B VXI  High Power MainFrame W/O Cards T18102 pictureHP 54120A Digitizing Oscilloscope Mainframe
$460.75
HP 54120A  Digitizing Oscilloscope Mainframe pictureHP Sweep Oscillator Mainframe with Plug In Slot (8620B)
$253.41
HP Sweep Oscillator Mainframe with Plug In Slot (8620B) pictureFluke Hydra 2620A CALIBRATED MAINFRAME software, cables, NO INPUT MODULE
$180.0
Fluke Hydra 2620A CALIBRATED MAINFRAME software, cables, NO INPUT MODULE picture






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