startNetworkProbe method

Future<ZegoNetworkProbeResult> startNetworkProbe(
  1. ZegoNetworkProbeConfig config
)

Start network probe.

Available since: 2.3.0 Description: Some local network problems may cause audio and video calls to fail. Using this function to probe the network protocols, assist in locating and solving related network problems. Use cases: Before pushing and pulling the stream, detect and locate some possible network problems. When to call: It needs to be called after createEngine. Restrictions: The SDK will not perform multiple network probe at the same time, that is, if the network probe is in progress, the SDK will ignore subsequent calls of this function. Caution: The SDK detects http, tcp, and udp in sequence internally. If the probe fails in the middle, the subsequent detection will not continue. Therefore, when reading the values ​​in the probe result, please pay attention to check if the value is null. Network probe may take a long time. Developers can call stopNetworkProbe to stop network probe if needed. It is not recommended to start network probe during publishing/playing stream. Related APIs: Call stopNetworkProbe to stop network probe.

  • config network probe config.

Implementation

Future<ZegoNetworkProbeResult> startNetworkProbe(
    ZegoNetworkProbeConfig config) async {
  return await ZegoExpressImpl.instance.startNetworkProbe(config);
}