Hello,
I'm trying to talk over with the DarwinStreamingServer (RTSP).
...
SocketConnection sc = (SocketConnection)Connector.open(socket://192.168.1.2:554/sample.mp4);
InputStream is = sc.openInputStream();
OutputStream os = sc.openOutputStream();
I can write a message, but I can't receive the answer without to know how many byte I need to read.
Neither is.available() nor while((b = is.read()) != -1){...}
works on Nokia.
I must do something like this:
while(l < lengthOfTheBeforeSniffedAnswer){
buf[l++]=(byte)is.read();
}
Could you please help me?

Reply With Quote



