Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/t-mullen/getdevicemedia

Easily get MediaStreams from any media device.
https://github.com/t-mullen/getdevicemedia

media webrtc

Last synced: 21 days ago
JSON representation

Easily get MediaStreams from any media device.

Awesome Lists containing this project

README

        

# getdevicemedia

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

Easily list and get MediaStreams from any media device.

```javascript
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

```html

```