Skip to content

Media Quality Indicator

Akshay Agarwal edited this page Apr 5, 2022 · 4 revisions

Media Quality Indicator

Media Quality Indicator can be received after registering callback on call/Meeting. These api's are available from v3.4.0 onwards

The API provides an indication of network status and other information related to the user device, for an ongoing call. Network status includes poor uplink, poor downlink, network lost and good network.

NOTE: This API is only available from sdk-version 3.4.0-Beta onwards

Media Quality Indicator API Examples

  1. Registering a onMediaQualityInfoChanged listener

    call.onMediaQualityInfoChanged = { indicator in
        switch indicator {
        case .Good:
                   // quality is good
        case .PoorUplink:
                   // poor uplink local network condition, e.g. packets lost or jitter between media server and device while sending media
        case .PoorDownlink:
                   // poor downlink local network condition, e.g. packets lost or jitter between media server and device while receiving media
        case .NetworkLost:
                    // network lost
        case .DeviceLimitation:
                    // The device has poor capability, e.g. CPU core count is not enough or memory size is small
        case .HighCpuUsage:
                   // The device has high cpu usage
      }
    }
  1. DeRegistering a onMediaQualityInfoChanged listener.

    call.onMediaQualityInfoChanged = nil