LiveKit LogoDocs
Real-timeEgress/IngressCloudReference

useSortedParticipants

The useSortedParticipants hook returns the only the active speakers of all participants.

Import

import { useSortedParticipants } from '@livekit/components-react';

Parameters

#
participantsArray<Participant>

Returns

Participant[]

On this page

ImportParametersReturns

Previous

Chevron IconuseRoomInfo
LiveKit Logo

Product

SFU

SDKs

Cloud Dashboard

Cloud Status

GitHub Logo