-
Notifications
You must be signed in to change notification settings - Fork 2
ParticipantNetworkQualityEventListener
Lejla Solak edited this page Oct 26, 2023
·
1 revision
Method that is triggered when participant's network quality has changed.
-
participantNetworkQualityChangedEvent
:ParticipantNetworkQualityChangedEvent
- Event instance containing the participant whose network quality has changed and the new network quality value.
N/A
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()));
}
}