LiveKit LogoDocs
Real-timeEgress/IngressCloudReference

useParticipants

The useParticipants hook returns all participants (local and remote) of the current room.

Import

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

Parameters

#
options?UseParticipantsOptions

Returns

(import("livekit-client").RemoteParticipant | import("livekit-client").LocalParticipant)[]

On this page

ImportParametersReturns

Previous

Chevron IconuseParticipantPermissions
LiveKit Logo

Product

SFU

SDKs

Cloud Dashboard

Cloud Status

GitHub Logo