I seen analog lib "camelot" and "imagesnap" in npm repositories.
"camelot" - work only in linux os (because it uses /dev/videoX).
"imagesnap" - support only create jpg and not support created stream. Same it lib is binary.
What may be a simple solution?
worked with lib https://github.com/wearefractal/camera, for mac os need install opencv, i'm use brew install opencv. it's really work!!
I haven't got everything working yet, but connecting to GStreamer over TCP from Node looks promising:
http://delog.wordpress.com/2011/04/26/stream-live-webm-video-to-browser-using-node-js-and-gstreamer/
The tutorial is about Linux, but most things should have an OSX equivalent. To get started:
brew install gstreamerbrew install gst-plugins-goodbrew install gst-plugins-badIf everything installed properly, this command should give you a test video source:
gst-launch-1.0 videotestsrc ! osxvideosink
I'm now trying to figure out how to get the webcam. I think the built-in webcam is locked down, but hopefully an external one might work.
I'm interested to hear if you make any progress!