onRemoteVideoStateChanged property

void Function(RtcConnection connection, int remoteUid, RemoteVideoState state, RemoteVideoStateReason reason, int elapsed)? onRemoteVideoStateChanged
final

远端视频状态发生改变回调。

频道内的用户(通信场景)或主播(直播场景)人数超过 32 人时,该回调可能不准确。

  • connection Connection 信息。详见 RtcConnection 。
  • remoteUid 发生视频状态改变的远端用户 ID。
  • state 远端视频流状态,详见 RemoteVideoState 。
  • reason 远端视频流状态改变的具体原因,详见 RemoteVideoStateReason 。
  • elapsed 从本地用户调用 joinChannel 方法到发生本事件经历的时间,单位为毫秒。

Implementation

final void Function(
    RtcConnection connection,
    int remoteUid,
    RemoteVideoState state,
    RemoteVideoStateReason reason,
    int elapsed)? onRemoteVideoStateChanged;