onVideoDeviceStateChanged property

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

Occurs when the video device state changes.

This callback reports the change of system video devices, such as being unplugged or removed. On a Windows device with an external camera for video capturing, the video disables once the external camera is unplugged. This callback is for Windows and macOS only.

  • deviceId The device ID.
  • deviceType Media device types. See MediaDeviceType.
  • deviceState Media device states. See MediaDeviceStateType.

Implementation

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