startNetworkDetection abstract method

Future<int?> startNetworkDetection({
  1. required bool isTestUplink,
  2. required int expectedUplinkBitrate,
  3. required bool isTestDownlink,
  4. required int expectedDownlinkBitrate,
})

开启通话前网络探测

isTestUplink 是否探测上行带宽

expectedUplinkBitrate 设置期望上行带宽,单位:kbps。范围为 {0, [100-10000]},其中, 0 表示由 SDK 指定最高码率。

isTestDownlink 是否探测下行带宽

expectedDownlinkBitrate 设置期望下行带宽,单位:kbps。范围为 {0, [100-10000]},其中, 0 表示由 SDK 指定最高码率。

返回值:

  • 0:调用成功;
  • <0:调用失败,具体原因参看 ReturnStatus

注意:

Implementation

Future<int?> startNetworkDetection({
  required bool isTestUplink,
  required int expectedUplinkBitrate,
  required bool isTestDownlink,
  required int expectedDownlinkBitrate,
});