useTrackMutedIndicator
The useTrackMutedIndicator
hook is used to implement the TrackMutedIndicator
component and returns the muted state of the given track.
Import
import { useTrackMutedIndicator } from "@livekit/components-react";
Usage
const { isMuted } = useTrackMutedIndicator(trackRef);
Properties
trackRef?
TrackReferenceOrPlaceholder
Returns
TrackMutedIndicatorReturnType;