onFirstRemoteVideoDecoded property

void Function(RtcConnection connection, int remoteUid, int width, int height, int elapsed)? onFirstRemoteVideoDecoded
final

已接收到远端视频并完成解码回调。

SDK 会在以下时机触发该回调: 远端用户首次上线后发送视频。 远端用户视频离线再上线后发送视频。出现这种中断的可能原因包括: 远端用户离开频道。 远端用户掉线。 远端用户调用 disableVideo 方法关闭视频模块。

  • connection Connection 信息。详见 RtcConnection 。
  • remoteUid 用户 ID,指定是哪个用户的视频流。
  • width 视频流宽(px)。
  • height 视频流高(px)。
  • elapsed 从本地调用 joinChannel 开始到该回调触发的延迟(毫秒)。

Implementation

final void Function(RtcConnection connection, int remoteUid, int width,
    int height, int elapsed)? onFirstRemoteVideoDecoded;