GitHub

Source

useParticipantTracks

useParticipantTracks is a custom React that allows you to get tracks of a specific participant only, by specifiying the participant's identity. If the participant identity is not passed the hook will try to get the participant from a participant context.

Import

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

Properties

sourcesTrack.Source[]
participantIdentity?string

Returns

TrackReference[]