NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Information and Download => Topic started by: stevegr on April 19, 2006, 01:53:11 am



Title: web cam connection
Post by: stevegr on April 19, 2006, 01:53:11 am
I tried to connect my Logitech web cam to ejs through the web cam component., with the parameters:
url: http://127.0.0.1
Mjpeg: false
with [b:41ba524c23]abyss web server[/b:41ba524c23] the responce from the console was:
[b:41ba524c23]image format exception not a jpeg file[/b:41ba524c23]

Is there any other way to connect the web cam?
Do i do something wrong?


Title: topic360
Post by: fem@um.es on April 19, 2006, 04:26:55 pm
If I am not wrong, the WebCam element only works properly for web cameras that run an associated http server. A basic WebCam connected to your computer doesn't run this service, I am afraid.

(I have, nevertheless asked someone who knows better than me.)

Paco Esquembre


Title: topic360
Post by: rhipple on April 19, 2006, 11:38:43 pm
If your web cam is plugged in and turned on, and you point your browser to http://127.0.0.1, do you see anything?


Title: web cam connection
Post by: stevegr on April 21, 2006, 03:56:47 am
I have solved the problem the following way:
found abyss portable web server pointing at localhost
found a program that captures .jpg from the web cam.
Put the jpg image in the web server.
The problem now is that i take pictures every 8 seconds and not streaming.


Title: topic360
Post by: rhipple on April 21, 2006, 04:01:13 am
Instead of a "web server" per se, can you find a "streaming video server" instead?