Results 1 to 2 of 2
Thread: Working With Webcams
- 10-22-2008, 01:26 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 3
- Rep Power
- 0
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..
- 10-28-2008, 04:39 PM #2
Member
- Join Date
- Oct 2008
- Location
- Lisbon, Portugal
- Posts
- 14
- Rep Power
- 0
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:
Java Code:URLConnection urlConn; URL myUrlHTTP; 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...Java Code:if(serverState == "state=takePictureFromWebCam&" ) (write code to take the picture with the webcam)
Similar Threads
-
client not working
By hit here in forum New To JavaReplies: 2Last Post: 08-10-2008, 01:00 AM -
ant no longer working
By varun077 in forum EclipseReplies: 1Last Post: 07-25-2008, 09:57 AM -
Java mail problem(working in intranet,but not working in iternet)
By sundarjothi in forum Advanced JavaReplies: 8Last Post: 05-28-2008, 07:00 AM -
Working With ANT
By JavaForums in forum EclipseReplies: 0Last Post: 04-26-2007, 08:16 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks