Working With Webcams
I have a client, He has a webcam hooked to a local machine. He uses this open source phpBMS software on a webserver. I have set up a simple object so he can upload a picture for his client to the server and have it named appropriately so he can associate it with a client. Trouble is that he wants to be able to view and control the webcam through the computer attached in teh browser so he can see the current picture, snap it then we can upload the picture to his server.Can one develop an applet or an app that can be embedded, take the picture as maybe an <object> include on a webpage? Even though this is a server based program, the camera will be controlled by the local machine..
You can't control directly the webcam with the client. but when you open your URLConnection you can write along with the url a "state".
something like this:
String host = yourServer;
String httpPort = yourPort; (by definition 80)
String state = "state=takePictureFromWebCam&";
String myAdress = "ht tp://" + host + ":" + httpPort + "/" + state;
myUrlHTTP = new URL(myAdress);
urlConn = myUrlHTTP.openConnection();
The server catch the hole url (myAdress) as a string and then:
Hope I helped somehow...
if(serverState == "state=takePictureFromWebCam&" )
(write code to take the picture with the webcam)