onVideoQualityChanged

open fun onVideoQualityChanged(participantId: String, prevQuality: VideoQuality, currentQuality: VideoQuality)

Called when the quality of this participant's camera that this device receives changes — the server switched to another simulcast layer, after Participant.setQuality, a viewport change or a change in bandwidth.

Reported only for a camera sent in several layers; a single-layer camera has one quality and never calls this.

Parameters

participantId

the participant whose camera changed quality.

prevQuality

the quality received before the change.

currentQuality

the quality received now.