11-26-2009, 07:35 AM
Join Date: Nov 2009
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | HTTP 3gp video playback buffering online
Please Login to Remove!
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");
VideoControl videoControl = (VideoControl) player.getControl("javax.microedition.media.contro l.VideoControl");
videoControl.initDisplayMode(VideoControl.USE_DIRE CT_VIDEO, this);
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.