useTrackByName
This function useTrackByName
allows you to access a track by referencing its track name. Inside the function, it ensures that the a valid participant
reference is available by checking for both a passed participant argument and, if not available, a valid participant context.
Import
import { useTrackByName } from "@livekit/components-react";
Properties
name
string
participant?
Participant
Returns
import("@livekit/components-core").TrackReferenceOrPlaceholder;