Skip to content

ParticipantNetworkQualityEventListener

Lejla Solak edited this page Oct 26, 2023 · 1 revision



onParticipantNetworkQualityChanged(participantNetworkQualityChangedEvent)

Description

Method that is triggered when participant's network quality has changed.

Arguments

  • participantNetworkQualityChangedEvent: ParticipantNetworkQualityChangedEvent - Event instance containing the participant whose network quality has changed and the new network quality value.

Returns

  • N/A

Example

ParticipantNetworkQualityEventListener participantNetworkQualityEventListener = new ParticipantNetworkQualityEventListener() {
    @Override
    public void onParticipantNetworkQualityChanged(ParticipantNetworkQualityChangedEvent participantNetworkQualityChangedEvent) {
        Participant participant = participantNetworkQualityChangedEvent.getParticipant();
        NetworkQuality networkQuality = participantNetworkQualityChangedEvent.getNetworkQuality();
        Log.d("WebRTC",String.format("%s's network quality changed to %s (value %s)", participant.getEndpoint().identifier(), networkQuality, networkQuality.getScore()));
    }
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally