onVideoDeviceStateChanged property

(void Function(ZegoUpdateType updateType, ZegoDeviceInfo deviceInfo)?) onVideoDeviceStateChanged
read / write

视频设备状态改变。

支持版本:1.1.0 及以上。 详情描述:通过监听此回调,用户可在必要的时候更新使用特定设备进行视频采集。 通知时机:监测到系统中有视频设备添加或移除时,会触发此回调。 使用限制:无。 平台差异:仅支持 Windows、macOS。 注意:此函数仅在 ZegoExpressVideo SDK 中有效!

  • updateType 更新类型(添加/删除)
  • deviceInfo 视频设备信息

Implementation

static void Function(ZegoUpdateType updateType, ZegoDeviceInfo deviceInfo)?
    onVideoDeviceStateChanged;