GitHub

Source

useTrackByName

Import

import { useTrackByName } from "@livekit/components-react";

Properties

options?UseMediaTrackOptions
trackRef?TrackReferenceOrPlaceholder

Returns

{
publication: import("livekit-client").TrackPublication | undefined;
isMuted: boolean | undefined;
isSubscribed: boolean | undefined;
track: import("livekit-client").Track | undefined;
elementProps: import("react").HTMLAttributes<HTMLElement>;
}