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.

  • deviceId Device ID.
  • deviceType Device type. See MediaDeviceType.
  • deviceState Device state. See MediaDeviceStateType.

Implementation

final void Function(String deviceId, MediaDeviceType deviceType,
    MediaDeviceStateType deviceState)? onVideoDeviceStateChanged;