LastmileProbeConfig

  • Flutter

更新时间不可用

Last mile 网络探测配置。

Dart
class LastmileProbeConfig {
  const LastmileProbeConfig(
      {this.probeUplink,
      this.probeDownlink,
      this.expectedUplinkBitrate,
      this.expectedDownlinkBitrate});

  @JsonKey(name: 'probeUplink')
  final bool? probeUplink;
  @JsonKey(name: 'probeDownlink')
  final bool? probeDownlink;
  @JsonKey(name: 'expectedUplinkBitrate')
  final int? expectedUplinkBitrate;
  @JsonKey(name: 'expectedDownlinkBitrate')
  final int? expectedDownlinkBitrate;
  factory LastmileProbeConfig.fromJson(Map<String, dynamic> json) =>
      _$LastmileProbeConfigFromJson(json);
  Map<String, dynamic> toJson() => _$LastmileProbeConfigToJson(this);
}

属性

参数名描述
probeUplink

是否探测上行网络。有些用户,如直播频道中的普通观众,不需要进行网络探测:

  • true: 探测上行网络。
  • false: 不探测上行网络。
probeDownlink

是否探测下行网络:

  • true: 探测下行网络。
  • false: 不探测下行网络。
expectedUplinkBitrate

用户期望的最高发送码率,单位为 bps,范围为 [100000,5000000]。建议参考 setVideoEncoderConfiguration 中的码率值设置该参数的值。

expectedDownlinkBitrate

用户期望的最高接收码率,单位为 bps,范围为 [100000,5000000]。

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

这个页面有帮助吗?