usePinnedTracks
The usePinnedTracks
hook returns a array of the pinned tracks of the current room.
Import
import { usePinnedTracks } from "@livekit/components-react";
Remarks
To function properly, this hook must be called within a LayoutContext
.
Usage
const pinnedTracks = usePinnedTracks();
Properties
layoutContext?
LayoutContextType
Returns
TrackReferenceOrPlaceholder[]