onUserEnableLocalVideo property

void Function(RtcConnection connection, int remoteUid, bool enabled)? onUserEnableLocalVideo
final

远端用户开/关本地视频采集回调。

废弃 弃用: 该回调已废弃,请改用 onRemoteVideoStateChanged 回调的如下枚举: remoteVideoStateStopped (0) 和 remoteVideoStateReasonRemoteMuted (5)。 remoteVideoStateDecoding (2) 和 remoteVideoStateReasonRemoteUnmuted (6)。 该回调是由远端用户调用 enableLocalVideo 方法开启或关闭视频采集触发的。

  • connection Connection 信息。详见 RtcConnection 。
  • remoteUid 用户 ID,提示是哪个用户的视频流。
  • enabled 远端用户是否启用视频采集: true : 该用户已启用视频功能。启用后,其他用户可以接收到该用户的视频流。 false : 该用户已关闭视频功能。关闭后,该用户仍然可以接收其他用户的视频流,但其他用户接收不到该用户的视频流。

Implementation

final void Function(RtcConnection connection, int remoteUid, bool enabled)?
    onUserEnableLocalVideo;