Appearance
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
| Parameter | Type |
|---|---|
participant | RemoteParticipant | null |
Returns
Track[]