GitHub

Source

useMediaTrackByName

caution:

This API is deprecated:

This function will be removed in a future version, use useTrackByName instead.

Import

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

Properties

namestring
options?UseMediaTrackOptions
participant?Participant

Returns

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