GitHub

Source

useIsMuted

The useIsMuted hook is used to implement the TrackMutedIndicator or your custom implementation of it. It returns a boolean that indicates if the track is muted or not.

Import

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

Usage

const isMuted = useIsMuted(track);

Properties

trackRefTrackReferenceOrPlaceholder

Returns

boolean;