-
Notifications
You must be signed in to change notification settings - Fork 29
Media Quality Indicator
Akshay Agarwal edited this page Apr 5, 2022
·
4 revisions
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.
-
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 } }
-
DeRegistering a onMediaQualityInfoChanged listener.
call.onMediaQualityInfoChanged = nil