onDeviceChanged property
final
The Status of a Local Device Changed (for Desktop OS Only)
The SDK returns this callback when a local device (camera, mic, or speaker) is connected or disconnected.
- Parameters:
- deviceId:
- Device ID.
- deviceType:
- Device type.
0
: Microphone1
: Speaker2
: Camera
- Device type.
- state:
- Device status.
0
: Connected1
: Disconnected2
: Started
- Device status.
- deviceId:
Implementation
final void Function(String deviceId, TXMediaDeviceType type, TXMediaDeviceState state) onDeviceChanged;