> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# DeviceRecoveryEvent

> Event emitted when the SDK auto-switches a device.

Event emitted when the SDK auto-switches a device.

## **Properties**

The kind of device that was switched.

The device that was selected as a replacement (null if none available). See [`MediaDeviceInfo`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo).

The device that was previously selected (null if none). See [`MediaDeviceInfo`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo).

The reason for the device switch.