Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/t-mullen/getdevicemedia
- Owner: t-mullen
- License: mit
- Created: 2018-03-05T04:09:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T04:35:55.000Z (almost 7 years ago)
- Last Synced: 2025-01-07T23:33:55.068Z (about 1 month ago)
- Topics: media, webrtc
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 devicesdevices[0].label // Built-in Microphone
devices[0].getStream(function (err, stream) {
stream // MediaStream for this device
})
})
```## install
```
npm install --save getdevicemedia
```or
```html
```