useTrackRefContext
Ensures that a track reference is provided via context. If not inside a TrackRefContext
, an error is thrown.
Import
import { useTrackRefContext } from "@livekit/components-react";
Returns
TrackReferenceOrPlaceholder;
Source
Ensures that a track reference is provided via context. If not inside a TrackRefContext
, an error is thrown.
import { useTrackRefContext } from "@livekit/components-react";
TrackReferenceOrPlaceholder;