onVideoDeviceStateChanged property
void Function(String deviceId, MediaDeviceType deviceType, MediaDeviceStateType deviceState)?
onVideoDeviceStateChanged
final
Callback when a video device changes.
This callback indicates that the system video device state has changed, such as being unplugged or removed. If you are using an external camera for capture, unplugging it will interrupt the video. This callback is applicable only to Windows and macOS.
deviceIdDevice ID.deviceTypeDevice type. See MediaDeviceType.deviceStateDevice state. See MediaDeviceStateType.
Implementation
final void Function(String deviceId, MediaDeviceType deviceType,
MediaDeviceStateType deviceState)? onVideoDeviceStateChanged;