LiveKit LogoDocs
Real-timeEgress/IngressCloudReference

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 source={Track.Source.Camera} />

Properties

#
sourceTrack.Source

(Optional)

#
name?string

(Optional)

#
onSubscriptionStatusChanged?(subscribed: boolean) => void

(Optional)

#
onTrackClick?(evt: ParticipantClickEvent) => void

(Optional)

#
participant?Participant

(Optional)

#
publication?TrackPublication

(Optional)

On this page

ImportUsageProperties

Previous

Chevron IconVideoConference
LiveKit logo

Product

SFU

SDKs

Performance

Deployment

GitHub Logo