LiveKit LogoDocs
Real-timeEgress/IngressCloudReference

useParticipantContext

Ensures that a participant is provided via context. If not inside a ParticipantContext, an error is thrown.

Import

import { useParticipantContext } from '@livekit/components-react';

Returns

Participant;

On this page

ImportReturns

Previous

Chevron IconuseMediaTrackByName
LiveKit Logo

Product

SFU

SDKs

Cloud Dashboard

Cloud Status

GitHub Logo