onNetworkSpeedTestError method

void onNetworkSpeedTestError(
  1. int errorCode,
  2. ZegoNetworkSpeedTestType type
)

Network speed test error callback.

Available since: 1.20.0 Description: Network speed test error callback. Use cases: This function can be used to detect whether the network environment is suitable for pushing/pulling streams with specified bitrate. When to Trigger: If an error occurs during the speed test, such as: can not connect to speed test server, this callback will be triggered. Restrictions: None.

Implementation

void onNetworkSpeedTestError(
  int errorCode,
  ZegoNetworkSpeedTestType type,
) {}