Socket
Socket
Sign inDemoInstall

getdevicemedia

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    getdevicemedia

Easily get a MediaStream from any media device.


Version published
Maintainers
1
Install size
616 kB
Created

Readme

Source

getdevicemedia

JavaScript Style Guide

Easily list and get MediaStreams from any media device.

getdevicemedia(function (err, devices) {
  // devices is an array of capture devices

  devices[0].label // Built-in Microphone
  devices[0].getStream(function (err, stream) {
    stream // MediaStream for this device
  })
})

install

npm install --save getdevicemedia

or

<script src="dist/getdevicemedia.js"></script>

FAQs

Last updated on 05 Mar 2018

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