getdevicemedia

1.0.0 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i getdevicemedia

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.94 kB

Total Files

6

Last publish

Collaborators

  • rationalcoding