Skip to content
Last updated

Call quality

The Android SDK exposes real-time information related to call quality. Using this API, you can be notified as soon as any degradation of connectivity metrics is observed and adjust your application UI to provide visible feedback to the user.

Accessing the call quality component

Access call quality features via the CallQualityController interface. Each Call object provides its own CallQualityController for accessing quality features of that specific call.


val call: Call // Any call instance provided by the SDK
val callQualityController = call.qualityController

Call quality warning events

Receive quality warning events via the CallQualityWarningEventListener interface. The snippet below shows how to add and remove your listener for those events.


val callQualityController = call.qualityController()
val myCallQualityWarningEventListener = CallQualityWarningEventListener { event ->
    // Handle the warning event
}
// Add your listener
callQualityController.addCallQualityWarningEventListener(myCallQualityWarningEventListener)
// Remove your listener
callQualityController.removeCallQualityWarningEventListener(myCallQualityWarningEventListener)

The CallQualityWarningEvent object provides the following information:

  • Name of the warning
  • Type of the event: either Trigger (degradation occurred) or Recover (returned to expected value).
  • Media stream type of the warning. Included only for warnings that can be bound to individual streams (Audio or Video).

The table below summarizes the possible types of CallQualityWarningEvent objects emitted by the Android SDK:

TypeFrom (Android SDK version)Contains MediaStreamTypeTrigger conditionsRecovery conditions
HighRemoteInboundRttWarningEvent6.3.9YESRound Trip Time (RTT) of packets is greater 300 msRound Trip Time (RTT) drops below 300 ms
HighInboundJitterWarningEvent6.3.9YESInbound jitter is greater than 30 ms for 3 out of the last 4 samplesTrigger conditions are no longer sustained
HighInboundPacketLossWarningEvent6.3.9YESInbound packet loss is greater than 1% in 3 out of the last 4 samplesTrigger conditions are no longer sustained
MissingMediaStreamWarningEvent6.3.9NOICE state is not CONNECTED while the call is establishedICE state reaches CONNECTED.
ConstantOutboundAudioLevel6.7.11NO (audio only)Standard deviation of outbound audio level measurements from the last 20 seconds (before 6.9.19: 8 seconds) is lower than 0.5% of the maximum possible audio level value.Trigger conditions are no longer sustained.
ConstantInboundAudioLevel6.7.11NO (audio only)Standard deviation of inbound audio level measurements from the last 20 seconds (before 6.9.19: 8 seconds) is lower than 0.5% of the maximum possible audio level value.Trigger conditions are no longer sustained.
ZeroInboundAudioLevel6.9.19NO (audio only)Audio level measurements of the inbound RTP audio stream from the last 2 seconds are equal to 0.Trigger conditions are no longer sustained
ZeroOutboundAudioLevel6.9.19NO (audio only)Audio level measurements of the outbound RTP audio stream from the last 2 seconds are equal to 0.Trigger conditions are no longer sustained
LowOSOutputVolumeLevel6.7.11NO (audio only)Platform volume, as set by the user or by a third-party app, is within the lower 25% range. Measured by observing STREAM_VOICE_CALL volume changes.Trigger conditions are no longer sustained.

More resources on SDK specifics

For detailed documentation of properties, classes, and other Kotlin Android SDK specifics, see the Dokka documentation included in the SDK archive. It is available on the SDK downloads page.