Skip to main content
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

With a track reference

const isMuted = useIsMuted(track);

Properties

trackRefTrackReferenceOrPlaceholderRequired

A TrackReference indicating the track to monitor.

Returns

boolean indicating if the track is muted

boolean;