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