Skip to main content
Version: 0.0.x

Set Participant Video Quality

This feature allows participants to set other participant's video quality during the meeting.

Set Quality

  • setQuality method will accept low, med or high as string parameter.
const { setQuality } = useParticipant(participantId);

const onPressed = () => {
// Low Quality
setQuality("low");

// Medium Quality
setQuality("med");

// High Quality
setQuality("high");
};
note

If the quality is set to high, but there is not enough netowrk bandwidth available, quality will reduce untill the newtwork quality improves.

Event

onVideoQualityChanged()

  • onVideoQualityChanged() is a callback which gets triggered whenever a participant's video quality changes.

  • currentQuality and prevQuality can have values HIGH | MEDIUM | LOW.

Example

function onVideoQualityChanged(data) {
const { currentQuality, prevQuality } = data;
}
const {
displayName
...
} = useParticipant(participantId,{
onVideoQualityChanged,
...
});