GitHub

Source

VideoTrack

The VideoTrack component is responsible for rendering participant video tracks like camera and screen_share. This component must have access to the participant's context, or alternatively pass it a Participant as a property.

Import

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

Usage

<VideoTrack trackRef={trackRef} />

Properties

manageSubscriptionbooleanOptional

(Optional)

onSubscriptionStatusChanged(subscribed: boolean) => voidOptional

(Optional)

onTrackClick(evt: ParticipantClickEvent) => voidOptional

(Optional)

trackRefTrackReferenceOptional

(Optional) The track reference of the track to render.