firstRemoteVideoDecoded property Null safety

VideoFrameWithUidCallback? firstRemoteVideoDecoded
read / write

已完成远端视频首帧解码回调。

Deprecated

该回调已废弃。请改用 RtcEngineEventHandler.remoteVideoStateChanged 回调中的 VideoRemoteState.StartingVideoRemoteState.Decoding

本地收到远端第一个视频帧并解码成功后,会触发该回调。有两种情况:

  • 远端用户首次上线后发送视频。
  • 远端用户视频离线再上线后发送视频。

其中,视频离线与用户离线不同。视频离线指本地在 15 秒内没有收到视频包,可能有如下原因:

VideoFrameWithUidCallback 包含如下参数:

  • int uid:用户 ID,指定是哪个用户的视频流。
  • int width:视频流宽(像素)。
  • int height:视频流高(像素)。
  • int elapsed:从本地用户调用 RtcEngine.joinChannel 加入频道开始到发生此事件过去的时间(毫秒)。

Implementation

@deprecated
VideoFrameWithUidCallback? firstRemoteVideoDecoded;