attachMediaStream
What is this?
A tiny browser module for attaching a media stream to a video (or audio) element with some options. It handles the differences between browsers via adapter.js.
Suitable for use with browserify/CommonJS on the client.
If you're not using browserify or you want AMD support use attachmediastream.bundle.js
.
Installing
npm install attachmediastream
How to use it
Makes it easy to attach video streams to video tags.
var getUserMedia = ;var attachMediaStream = ; // get user media;
Why?
Browsers used to to this very differently. This is now less true than it used to be.
It's still handy to be able to control mirroring, muting, autoplay in one shot with sane defaults.
License
MIT