A pure javascript HTML5 webcam client using websockets to stream the image
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
jefklak a4a908e980 added nice readme wow 9 years ago
cam initial commit 9 years ago
node_modules initial commit 9 years ago
.DS_Store initial commit 9 years ago
README.md added nice readme wow 9 years ago
clientcam.html initial commit 9 years ago
compress.js initial commit 9 years ago
ftpindex.js initial commit 9 years ago
image.jpg initial commit 9 years ago
index.json initial commit 9 years ago
server.js initial commit 9 years ago
start.sh initial commit 9 years ago

README.md

Websocket-enabled HTML5 webcam

What's this?

Nothing special, bits and pieces glued together:

  • HTML5 enabled webcam using something like the video tag and a bit of JS magic (see clientcam.html)
  • websocket enabled streaming of the data found on the client back to the pure NodeJS server (server.js).
  • the NodeJS server then streams the raw bytes back to other browser clients. (cam/index.html)

That's it!

Why would you do something like this?

This is an experiment to be able to use pure Javascript to stream data/images from my home laptop to "the internets". We had a puppy 6 months ago and I wanted to monitor his behaviour in his bench when not home: what's he doing? Is he sleeping? Is he okay?

By the way, I found out the dog does nothing but sleep during the day. BOOORING :) All these lines of code, for nothing!

Where are your unit tests?

O-ow.

It was a spike, okay? (lol)

Your woofie, Let me show you them!

The little devil, at that time

Yes, the cat decided to join the peeping fest, but got bored quickly. As our cat usually does. YAWN