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
Developer
EnochRoot
Posts: 41
Registered: ‎01-19-2010
My Device: 8900
My Carrier: Vodafone

Using BB smartphone as a webcam

Hi

I am trying to use my BB 9000 as a webcam. The data is streamed via TCP socket connection.

...

 

 

Player

player = Manager.createPlayer("capture://video?encoding=video/3gpp&mode=mms

);

 

player.start(); RecordControl recordControl = (RecordControl) player.getControl("RecordControl"); 

 

recordControl.setRecordStream(send); //send = outputstream opened by
                                     //the socket connection

recordControl.startRecord();

send.flush();

...

 

The cam is working and I am able to play the stream with my VLC player. The problem ist, that I have a delay of 5-6 seconds. I do not no why the delay is that big. I also tried to use other encodings, but the delay has not changed even if I use a higher resolution of the recorded media.

 

I thought of using a UDPDatagramConnection instead of the TCP socket, but I am not sure if the delay depends on tcp.


I would appreciate any ideas/experiences!

EnochRoot

Please use plain text.