useSortedParticipants
The useSortedParticipants hook returns the only the active speakers of all participants.
Import
import { useSortedParticipants } from '@livekit/components-react';
Parameters
Returns
Participant[]
The useSortedParticipants hook returns the only the active speakers of all participants.
import { useSortedParticipants } from '@livekit/components-react';
Participant[]
Previous
useRoomInfoUp Next
useSpeakingParticipants