useSpeakingParticipants
The useSpeakingParticipants
hook returns only the active speakers of all participants.
Import
import { useSpeakingParticipants } from "@livekit/components-react";
Usage
const activeSpeakers = useSpeakingParticipants();
Returns
import('livekit-client').Participant[]