onVideoDeviceStateChanged method
void
onVideoDeviceStateChanged(
- ZegoUpdateType updateType,
- ZegoDeviceInfo deviceInfo
The callback triggered when there is a change to video devices (i.e. new device added or existing device deleted).
Available since: 1.1.0 Description: By listening to this callback, users can update the video capture using a specific device when necessary. When to trigger: This callback is triggered when a video device is added or removed from the system. Restrictions: None Platform differences: Only supports Windows and macOS. Note: This function is only available in ZegoExpressVideo SDK!
updateType
Update type (add/delete)deviceInfo
Audio device information
Implementation
void onVideoDeviceStateChanged(
ZegoUpdateType updateType,
ZegoDeviceInfo deviceInfo,
) {}