Socket
Socket
Sign inDemoInstall

get-user-media

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    get-user-media

Cross browser navigator.getUserMedia with a node api


Version published
Weekly downloads
17
increased by30.77%
Maintainers
1
Install size
2.85 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 17 Nov 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc