Interface for media device management.
Provides reactive access to available media devices, device selection, and monitoring for device changes (connect/disconnect).
Current snapshot of available audio input devices. See MediaDeviceInfo.
Observable list of available audio input (microphone) devices. See MediaDeviceInfo.
Whether audio input is currently disabled.
Observable that emits true when audio input is disabled (receive-only).
Current snapshot of available audio output devices. See MediaDeviceInfo.
Observable list of available audio output (speaker) devices. See MediaDeviceInfo.
Observable that emits when the SDK auto-switches a device due to disconnect, reconnect, or recovery. See DeviceRecoveryEvent.
Observable stream of errors from device enumeration and monitoring.
Currently selected audio input device, or null if none. See MediaDeviceInfo.
Observable of the currently selected audio input device, or null if none. See MediaDeviceInfo.
Media track constraints for the selected audio input device. Returns false when disabled. See MediaTrackConstraints.
Currently selected audio output device, or null if none. See MediaDeviceInfo.
Observable of the currently selected audio output device, or null if none. See MediaDeviceInfo.
Currently selected video input device, or null if none. See MediaDeviceInfo.
Observable of the currently selected video input device, or null if none. See MediaDeviceInfo.
Media track constraints for the selected video input device. Returns false when disabled. See MediaTrackConstraints.
Current snapshot of available video input devices. See MediaDeviceInfo.
Observable list of available video input (camera) devices. See MediaDeviceInfo.
Whether video input is currently disabled.
Observable that emits true when video input is disabled (receive-only).
Clears all device state (history, selections, persisted prefs) and re-enumerates.
Promise<void>
Converts a MediaDeviceInfo to track constraints suitable for getUserMedia.
The device to convert, or null for default constraints. See MediaDeviceInfo.
MediaTrackConstraints
Disables audio input (receive-only mode). No track will be acquired.
void
Stops monitoring for media device changes.
void
Disables video input (receive-only mode). No track will be acquired.
void
Re-enables audio input, restoring the last selection or auto-selecting.
void
Starts monitoring for media device changes (connect/disconnect).
void
Re-enables video input, restoring the last selection or auto-selecting.
void
Force a device re-enumeration.
Promise<void>
Returns the capabilities of a media device.
The device to query. See MediaDeviceInfo.
Promise<MediaTrackCapabilities | null>
The device capabilities, or null if unavailable.
Checks whether a device is still available and usable.
The device to validate, or null. See MediaDeviceInfo.
Promise<boolean>
true if the device is valid and available. Returns false for null, audio output devices, or unavailable devices.
Sets the preferred audio input device for future calls.
The device to select, or null to use the system default. See MediaDeviceInfo.
void
Sets the preferred audio output device for future calls.
The device to select, or null to use the system default. See MediaDeviceInfo.
void
Sets the preferred video input device for future calls.
The device to select, or null to use the system default. See MediaDeviceInfo.
void
Injects the storage manager for device persistence.
Optional storage manager used to persist device selections.
void