Skip to content

Function: useTracks() ​

ts
function useTracks(participant): Track[];

A participant's tracks, ready to attach: <video ref={track.ref} />.

The ref callback is Track's own and is stable for the life of the track, so React attaches once and detaches once however often the component renders.

Parameters ​

ParameterType
participantRemoteParticipant | null

Returns ​

Track[]

Talkline documentation