Skip to main content
useParticipantIds(params?): string[]; Use it to render groups, grids, or lists of participant tiles. If no parameters are provided, the ids of all participants in the call are returned.

Parameters (optional)

An object with the following properties:
string
'local' | 'remote' | 'screen' | 'owner' | 'record' | FilterParticipantsFunction, filters the list of participant ids according to the provided criteria
Function
Callback for the active-speaker-change event
Function
Callback for the participant-joined event
Function
Callback for the participant-left event
Function
Callback for the participant-updated event
string
'joined_at' | 'session_id' | 'user_id' | 'user_name' | SortParticipantsFunction, sorts the list of participant ids according to the provided criteria

Return value

Returns a string[] — an array of participant ids.

Example

See also