VideoRenderingTracingInfo

  • Flutter

更新时间不可用

视频帧渲染过程中的指标信息。

Dart
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class VideoRenderingTracingInfo {
  const VideoRenderingTracingInfo(
      {this.elapsedTime,
      this.start2JoinChannel,
      this.join2JoinSuccess,
      this.joinSuccess2RemoteJoined,
      this.remoteJoined2SetView,
      this.remoteJoined2UnmuteVideo,
      this.remoteJoined2PacketReceived});

  @JsonKey(name: 'elapsedTime')
  final int? elapsedTime;

  @JsonKey(name: 'start2JoinChannel')
  final int? start2JoinChannel;

  @JsonKey(name: 'join2JoinSuccess')
  final int? join2JoinSuccess;

  @JsonKey(name: 'joinSuccess2RemoteJoined')
  final int? joinSuccess2RemoteJoined;

  @JsonKey(name: 'remoteJoined2SetView')
  final int? remoteJoined2SetView;

  @JsonKey(name: 'remoteJoined2UnmuteVideo')
  final int? remoteJoined2UnmuteVideo;

  @JsonKey(name: 'remoteJoined2PacketReceived')
  final int? remoteJoined2PacketReceived;

  factory VideoRenderingTracingInfo.fromJson(Map<String, dynamic> json) =>
      _$VideoRenderingTracingInfoFromJson(json);

  Map<String, dynamic> toJson() => _$VideoRenderingTracingInfoToJson(this);
}

属性

参数名描述
elapsedTime

从调用 startMediaRenderingTracing 到触发 onVideoRenderingTracingResult 回调的时间间隔 (ms)。建议在加入频道前调用 startMediaRenderingTracing。

start2JoinChannel

从调用 startMediaRenderingTracing 到调用 joinChannel 的时间间隔 (ms)。负数表示在调用 joinChannel 后调用 startMediaRenderingTracing。

join2JoinSuccess

从调用 joinChannel1 或 joinChannel 到成功加入频道的时间间隔 (ms)。

joinSuccess2RemoteJoined

注:

  • 如果本地用户在远端用户加入频道后调用 startMediaRenderingTracing,则该值为 0,无参考意义。
  • 为提升远端用户出图速度,建议远端用户加入频道中后,本地用户再加入频道,以降低该值。
remoteJoined2SetView

注:

  • 如果本地用户在设置远端视图后再调用 startMediaRenderingTracing,则该值为 0,无参考意义。
  • 为提升远端用户出图速度,建议在远端用户加入频道之前设置远端视图,或者远端用户加入频道后立即设置远端视图,以降低该值。
remoteJoined2UnmuteVideo

注:

  • 如果在订阅远端视频流后再调用 startMediaRenderingTracing,则该值为 0,无参考意义。
  • 为提升远端用户出图速度,建议在远端用户加入频道后,本地用户立即订阅远端视频流,以降低该值。
remoteJoined2PacketReceived

注:

  • 如果在接收到远端视频流后再调用 startMediaRenderingTracing,则该值为 0,无参考意义。
  • 为提升远端用户出图速度,建议在远端用户加入频道后立即发布视频流,本地用户立即订阅远端视频流,以降低该值。
表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?