onNetworkSpeedTestQualityUpdate method

void onNetworkSpeedTestQualityUpdate(
  1. ZegoNetworkSpeedTestQuality quality,
  2. ZegoNetworkSpeedTestType type
)

Network speed test quality callback.

Available since: 1.20.0 Description: Network speed test quality callback when the network can be connected. 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: After call startNetworkSpeedTest start network speed test, this callback will be triggered. The trigger period is determined by the parameter value specified by call startNetworkSpeedTest, default value is 3 seconds Restrictions: None. Caution: When error occurred during network speed test or stopNetworkSpeedTest called, this callback will not be triggered.

  • quality Network speed test quality.
  • type Uplink or down-link.

Implementation

void onNetworkSpeedTestQualityUpdate(
  ZegoNetworkSpeedTestQuality quality,
  ZegoNetworkSpeedTestType type,
) {}