Constructor
new MediaDevicesMonitor()
Classes
Methods
addEventListener(name, listener) → {Promise}
Adds a event listener
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | The event name |
listener |
object | The listener |
Returns:
- Type
- Promise
(async) enumMediaDevices() → {Promise}
Enumerates the current available devices
Returns:
- Type
- Promise
isAudioInputDeviceId(id) → {Promise}
Checks if a device id matchs a valid audio input device id
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | The device id |
Returns:
- Type
- Promise
isAudioOutputDeviceId(id) → {Promise}
Checks if a device id matchs a valid audio output device id
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | The device id |
Returns:
- Type
- Promise
removeEventListener(name, listener) → {Promise}
Removes a event listener
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | The event name |
listener |
object | The listener |
Returns:
- Type
- Promise
start() → {boolean}
Starts the monitor
Returns:
- Type
- boolean
stop() → {void}
Stops the monitor
Returns:
- Type
- void