getdevicemedia
v1.0.0
Published
Easily get a MediaStream from any media device.
Downloads
4
Readme
getdevicemedia
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>