setQuality

open suspend fun setQuality(quality: VideoQuality)

Asks the server for a different simulcast layer of this participant's camera — drop a thumbnail tile to VideoQuality.LOW to save bandwidth, raise the speaker to VideoQuality.HIGH.

Does nothing on yourself, and nothing when the value already matches videoQuality, so calling it on every layout pass is free. Screen share has its own setScreenShareQuality.

Code Example:

lifecycleScope.launch { participant.setQuality(VideoQuality.LOW) }

Parameters

quality

the layer to receive.

Throws

code 3068 (ERROR_ACTION_NOT_SUPPORTED) if this device is not receiving their camera, or code 4073 (SET_QUALITY_FAILED) if the server refuses.