LastmileProbeConfig

Configurations of the last-mile network test.

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);
}

Attributes

probeUplink
Sets whether to test the uplink network. Some users, for example, the audience members in a LIVE_BROADCASTING channel, do not need such a test.
  • true: Test the uplink network.
  • false: Do not test the uplink network.
probeDownlink
Sets whether to test the downlink network:
  • true: Test the downlink network.
  • false: Do not test the downlink network.
expectedUplinkBitrate
The expected maximum uplink bitrate (bps) of the local user. The value range is [100000, 5000000]. Agora recommends referring to setVideoEncoderConfiguration to set the value.
expectedDownlinkBitrate
The expected maximum downlink bitrate (bps) of the local user. The value range is [100000,5000000].