GitHub

Source

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;