Rate this page:

IQualityIssueListener

Interface to monitor issues that affect call quality during a call. Use the ICall.setQualityIssueListener(IQualityIssueListener) API to subscribe to the following events.

Quality issues are detected only if a call is connected. If a call is reconnecting, all previously detected issues (if any) are reset, their issue level is changed to QualityIssueLevel.NONE

Methods

onCodecMismatch

Since ver. 2.6.0
Copy URL

void

onCodecMismatch(

ICall

call,

QualityIssueLevel

level,

String

sendCodec
)

Invoked if local video is encoded by a codec different from specified in ClientConfig.preferredVideoCodec or CallSettings.preferredVideoCodec

Issue level is QualityIssueLevel.CRITICAL if video is not sent, QualityIssueLevel.MAJOR in case of codec mismatch or QualityIssueLevel.NONE if the issue is not detected.

Possible reasons:

  1. The device does not support a selected codec. For example, if H264 is specified and the device does not support this hardware codec, the issue will be triggered
  2. The video is not sending for some reasons. In this case sendCodec will be null
  3. Different codecs are specified in the call endpoints

Parameters

  • call:

    ICall

    Call the issue belongs to

  • Issue level

  • sendCodec:

    String

    Codec that is currently used or null if the video is not sent

Returns

  • type:

    void

onHighMediaLatency

Since ver. 2.6.0
Copy URL

void

onHighMediaLatency(

ICall

call,

QualityIssueLevel

level,

double

latency
)

Invoked if network-based media latency is detected in the call. Network-based media latency is calculated based on rtt (round trip time) and jitter buffer. Latency refers to the time it takes a voice/video packet to reach its destination. Sufficient latency causes call participants to speak over the top of each other.

Issue level may vary during the call.

Possible reasons:

  1. Network congestion/delays
  2. Lack of bandwidth

Parameters

  • call:

    ICall

    Call the issue belongs to

  • Issue level

  • latency:

    double

    Network-based latency measured in milliseconds at the moment the issue triggered.

Returns

  • type:

    void

onIceDisconnected

Since ver. 2.6.0
Copy URL

void

onIceDisconnected(

ICall

call,

QualityIssueLevel

level
)

Invoked if ICE connection is switched to the "disconnected" state during the call.

Issue level is always QualityIssueLevel.CRITICAL, because there is no media in the call until the issue is resolved.

Event may be triggered intermittently and be resolved just as spontaneously on less reliable networks, or during temporary disconnections.

Possible reasons:

  1. Network issues

Parameters

Returns

  • type:

    void

onLocalVideoDegradation

Since ver. 2.6.0
Copy URL

void

onLocalVideoDegradation(

ICall

call,

QualityIssueLevel

level,

int

targetWidth,

int

targetHeight,

int

actualWidth,

int

actualHeight
)

Invoked if the video resolution sent to the endpoint is lower than a captured video resolution. As a result it affects remote video quality on the remote participant side, but do not affect the quality of local video preview on the android application.

The issue level may vary during the call.

Possible reasons:

  1. High CPU load during the video call
  2. Network issues such as poor internet connection or low bandwidth

Parameters

  • call:

    ICall

    Call the issue belongs to

  • Issue level

  • targetWidth:

    int

    Captured frame width

  • targetHeight:

    int

    Captured frame height

  • actualWidth:

    int

    Sent frame width

  • actualHeight:

    int

    Sent frame height

Returns

  • type:

    void

onLowBandwidth

Since ver. 2.6.0
Copy URL

void

onLowBandwidth(

ICall

call,

QualityIssueLevel

level,

double

targetBitrate,

double

actualBitrate
)

DEPRECATED

Invoked if current bitrate is insufficient for sending video with current resolution.

Issue level may vary during the call. SDK may report QualityIssueLevel.MAJOR or QualityIssueLevel.MINOR while detecting network capabilities right after the call start.

Target bitrate depends on the sent video frame resolution. If the resolution of video frames sent is changed, target bitrate can also be changed (increased or degraded).

It is not recommended to change the resolution or other video call parameters once the issue is detected; in such case, SDK tries to adapt to the current congestion automatically. Only if the issue level is constantly QualityIssueLevel.MAJOR or QualityIssueLevel.CRITICAL, you can change the video call parameters.

Issue may be triggered and constantly report QualityIssueLevel.MAJOR or QualityIssueLevel.CRITICAL if the application is running in the background.

Possible reasons:

  1. Network issues
  2. Background state of an application

Parameters

  • call:

    ICall

    Call the issue belongs to

  • Issue level

  • targetBitrate:

    double

    Bitrate required to send video with current resolution with a good quality. Measured in bits per second.

  • actualBitrate:

    double

    Actual bitrate. Measured in bits per second.

Returns

  • type:

    void

onNoAudioReceive

Since ver. 2.24.0
Copy URL

void

onNoAudioReceive(

ICall

call,

QualityIssueLevel

level,

IRemoteAudioStream

audioStream,

IEndpoint

endpoint
)

Invoked if no audio is received on the remote audio stream.

Issue level can be only QualityIssueLevel.CRITICAL if the issue is detected or QualityIssueLevel.NONE if the issue is not detected or resolved.

If no audio receive is detected on several remote audio streams, the event will be invoked for each of the remote audio streams with the issue.

If the issue level is QualityIssueLevel.CRITICAL, the event will not be invoked with the level QualityIssueLevel.NONE in cases:

  1. The (conference) call ended
  2. The endpoint left the conference call - - IEndpointListener.onEndpointRemoved(IEndpoint) is invoked

The issue is not detected for the following cases:

  1. The endpoint put the call on hold via ICall.hold(boolean, ICallCompletionHandler)
  2. The endpoint stopped sending audio during a call via ICall.sendAudio(boolean)

Possible reasons:

  1. Poor internet connection on the client or the endpoint
  2. Connection lost on the endpoint

Parameters

Returns

  • type:

    void

onNoAudioSignal

Since ver. 2.6.0
Copy URL

void

onNoAudioSignal(

ICall

call,

QualityIssueLevel

level
)

Invoked if no audio is captured by the microphone.

Issue level can be only QualityIssueLevel.CRITICAL if the issue is detected or QualityIssueLevel.NONE if the issue is not detected or resolved.

Depending on the device manufacturer, the issue may be occasionally reported in case of pause in the conversation.

Possible reasons:

  1. Application or other library mutes the microphone via the setMicrophoneMute android sdk API
  2. Application is running in the background for more than 1 minute and foreground service was not started. Only Android 9+ applications are sensitive.

Parameters

Returns

  • type:

    void

onNoVideoReceive

Since ver. 2.24.0
Copy URL

void

onNoVideoReceive(

ICall

call,

QualityIssueLevel

level,

IRemoteVideoStream

videoStream,

IEndpoint

endpoint
)

Invoked if no video is received on the remote video stream.

Issue level can be only QualityIssueLevel.CRITICAL if the issue is detected or QualityIssueLevel.NONE if the issue is not detected or resolved.

If no video receive is detected on several remote video streams, the event will be invoked for each of the remote video streams with the issue.

If the issue level is QualityIssueLevel.CRITICAL, the event will not be invoked with the level QualityIssueLevel.NONE in cases:

  1. The (conference) call ended
  2. The remote video stream was removed - IEndpointListener.onRemoteVideoStreamRemoved(IEndpoint, IRemoteVideoStream) is invoked.
  3. The endpoint left the conference call - IEndpointListener.onEndpointRemoved(IEndpoint) is invoked

The issue is not detected for the following cases:

  1. The endpoint put the call on hold via ICall.hold(boolean, ICallCompletionHandler)
  2. The endpoint stopped sending video during the call via ICall.sendVideo(boolean, ICallCompletionHandler)
  3. Video receiving was stopped on the remote video stream via IRemoteVideoStream.stopReceiving(ICallCompletionHandler).

Possible reasons:

  1. Poor internet connection on the client or the endpoint
  2. Connection lost on the endpoint
  3. The endpoint's application has been moved to the background state on an iOS device

Parameters

Returns

  • type:

    void

onPacketLoss

Since ver. 2.6.0
Copy URL

void

onPacketLoss(

ICall

call,

QualityIssueLevel

level,

double

packetLoss
)

Invoked on packet loss detection. Packet loss can lead to missing of entire sentences, awkward pauses in the middle of a conversation or robotic voice during the call.

Issue level may vary during the call.

Possible reasons:

  1. Network congestion
  2. Bad hardware (parts of the network infrastructure)

Parameters

  • call:

    ICall

    Call the issue belongs to

  • Issue level

  • packetLoss:

    double

    Average packet loss for 2.5 seconds.

Returns

  • type:

    void