DeviceRecoveryEvent

View as MarkdownOpen in Claude

Event emitted when the SDK auto-switches a device.

Properties

kind
audioinput | audiooutput | videoinputRequired

The kind of device that was switched.

newDevice
MediaDeviceInfo | nullRequired

The device that was selected as a replacement (null if none available). See MediaDeviceInfo.

previousDevice
MediaDeviceInfo | nullRequired

The device that was previously selected (null if none). See MediaDeviceInfo.

reason
device_disconnected | device_reconnected | session_restored | fallback_to_default | default_changed | ambiguous_matchRequired

The reason for the device switch.