useTrackContext
Ensures that a track reference is provided via context. If not inside a TrackContext
, an error is thrown.
Import
import { useTrackContext } from '@livekit/components-react';
Returns
TrackReferenceOrPlaceholder;
Ensures that a track reference is provided via context. If not inside a TrackContext
, an error is thrown.
import { useTrackContext } from '@livekit/components-react';
TrackReferenceOrPlaceholder;
Previous
useTokenUp Next
useTrackMutedIndicator