04-19-2010 11:25 AM
I am trying to use my BB 9000 as a webcam. The data is streamed via TCP socket connection.
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
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!