onVideoDeviceStateChanged property

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

视频设备变化回调。

该回调提示系统视频设备状态发生改变,比如被拔出或移除。如果设备已使用外接摄像头采集,外接摄像头被拔开后,视频会中断。 该回调仅适用于 Windows 和 macOS。

  • deviceId 设备 ID。
  • deviceType 设备类型。详见 MediaDeviceType 。
  • deviceState 设备状态。详见 MediaDeviceStateType 。

Implementation

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