useSpeakingParticipants
function useSpeakingParticipants(): unknown[];Defined in: packages/react/src/hooks/participant/useSpeakingParticipants.ts:19
The useSpeakingParticipants hook returns only the active speakers of all participants.
Returns
unknown[]
Example
function ActiveSpeakerList() {
const activeSpeakers = useSpeakingParticipants();
return <ParticipantLoop participants={activeSpeakers}><ParticipantName /></ParticipantLoop>;
}