Skip to content

juliangruber/get-user-media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-user-media

Cross browser navigator.getUserMedia with a node api.

Example

var getUserMedia = require('get-user-media');

getUserMedia({ audio: true }, function(err, stream) {
  if (err) throw err;

  // do something with the stream
});

API

getUserMedia(constraints, fn)

Request user media based on given constraints, which currently can be

{
  audio: true,
  video: true
}

Call fn with the potential Error and the resulting input stream.

Installation

Install with npm:

$ npm install get-user-media

Install with component(1):

$ component install juliangruber/get-user-media

License

MIT

About

Cross browser navigator.getUserMedia with a node api

Resources

Stars

Watchers

Forks

Packages

No packages published