I'm trying to develop app to stream live camera view from cell phone (J2ME) to PC via wifi. My problem is sending stream to server on pc. I've tried to do something like that (which I found on some forum):
but it doesn't work. Are sockets good idea or I need to use something different? Could you give me any piece of information how to manage the problem, because Im not even close to the solution. Any ideas or links will be helpfull.
socketConnection = (SocketConnection) Connector.open("socket://"+ip+":"+port);
player = Manager.createPlayer("capture://video");
recordControl = (RecordControl) player.getControl("RecordControl");
ByteArrayOutputStream output = new ByteArrayOutputStream();
byte  data = output.toByteArray();
outputStream = socketConnection.openOutputStream();
I've read a lot about RTSP and there are many examples how to downstream a video to j2me but none for streaming from phone.
On the server part I'm going to use Xuggler library to display the video.