Valora
API Reference@valora-ai/reactindexFunctions

useIsMuted

function useIsMuted(_trackRef): boolean;

Defined in: packages/react/src/hooks/track/useIsMuted.ts:17

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.

Parameters

ParameterType
_trackRefunknown

Returns

boolean

Example

const isMuted = useIsMuted({ source: "microphone" });
return <span>{isMuted ? "Muted" : "Unmuted"}</span>;

On this page

Valora is local-first

No API key, no server — everything in this doc runs on-device.

Star on GitHub