PathStats

  • Flutter

更新时间不可用

用于获取特定网络路径的统计数据。

Dart
class PathStats implements AgoraSerializable {
  const PathStats({this.type, this.txKBitRate, this.rxKBitRate});

  @JsonKey(name: 'type')
  final MultipathType? type;

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

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

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

  @override
  Map<String, dynamic> toJson() => _$PathStatsToJson(this);
}

自从

自 v6.6.2 版本新增。

属性

参数名描述
type

网络路径的类型。详见 MultipathType。

txKBitRate

该路径的传输码率,单位为 Kbps。

rxKBitRate

该路径的接收码率,单位为 Kbps。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?