Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

use HTML5 WebRTC getUserMedia the node way -- with streams

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 demo-bundle.js
Octocat-spinner-32 demo.html
Octocat-spinner-32 demo.js
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
Octocat-spinner-32 readme.md
readme.md

domnode-usermedia

npm install mediastream

use HTML5 WebRTC the node way -- with streams

var media = mediastream({video: true})

media is a readable stream and speaks stream events: data, error and end. that means you can pipe media output to anything that accepts streams, such as an XHR. in this case the data events will be DataURI representations of the user's webcam frame captures

limitations

browsers only let you get webcam video right now (even though you can include audio: true in the options there is no way to capture the audio)

to generate demo-bundle.js using browserify:

npm install browserify -g
browserify demo.js -o demo-bundle.js

MIT LICENSE

Something went wrong with that request. Please try again.