Server-Side-WebCam using Node.js, Socket.io and "Motion" for grabbing frames
ServerSide:
You need to have a Linux Server with Node.js installed. The webcam ist connected to the server - not the client. Motion will do the job to connect to the WebCam and save the frames in the folder it was startet (/tmp/motion) Remember Motion will stop saving images when there is no change in the image.
- Install Motion (http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) -- apt-get install motion
- Install Node dependencies: -- npm install
- Start motion in /tmp/motion (default - if other configure it in server.js)
- Start Node server with -- node server.js
ClientSide: Just open index.html.
Remember to change the localhost refs if you want to open it NOT from localhost.