Great, thank you for the information. Sadly, I don't think I'll be able to do much via the method you described. Instead I am trying a method which connects the camera to the robot's router/radio (iirc they send out a router instead of a bridge this year). From there I can just query the web server to get a .jpg image.
Quote:
HttpConnection con;
DataInputStream conIn;
DataOutputStream conOut;
// Basic authentication expects base-64 encoded "user $@#$@#$@#".
// This is "root $@#$@#$@#" or whatever the default is.
String encodedLogin = "cm9vdDphZG1pbg==";
con = (HttpConnection)Connector.open("http://10.19.84.10/axis-cgi/jpg/image.cgi?resolution=320x240");
con.setRequestProperty("Authorization", "Basic " + encodedLogin);
System.out.println(con.getResponseCode() + " " + con.getResponseMessage());
conIn = con.openDataInputStream();
conOut = con.openDataOutputStream();
|
This might or might not be too slow. The response time seems slower than the mjpg stream which can be accessed at /mjpg/video.mjpg
Also, I don't know if it's possible to store cookies or use them (easily). It's probably required that you re-auth on each grab.