GitHub

Source

useIsSpeaking

The useIsSpeaking hook returns a boolean that indicates if the participant is speaking or not.

Import

import { useIsSpeaking } from "@livekit/components-react";

Usage

const isSpeaking = useIsSpeaking(participant);

Properties

participantParticipantOptional

Returns

boolean;

Was this page helpful?