This module represents all the participants in the meeting (except the local user). It consists of 4 maps:
joined: A map of all participants that have joined the meeting.waitlisted: A map of all participants that have been added to the waitlist.active: A map of active participants who should be displayed in the meeting grid.pinned: A map of pinned participants.
- RTKParticipants
- .waitlisted
- .joined
- .active
- .videoSubscribed
- .audioSubscribed
- .pinned
- .all
- .pip
- .viewMode
- .currentPage
- .lastActiveSpeaker
- .selectedPeers
- .count
- .maxActiveParticipantsCount
- .pageCount
- .setMaxActiveParticipantsCount(limit)
- .acceptWaitingRoomRequest(id)
- .acceptAllWaitingRoomRequest(userIds)
- .rejectWaitingRoomRequest(id)
- .setViewMode(viewMode)
- .subscribe(peerIds, [kinds])
- .unsubscribe(peerIds, [kinds])
- .setPage(page)
- .disableAllAudio(allowUnmute)
- .disableAllVideo()
- .kickAll()
- .broadcastMessage(type, payload, target)
- .getAllJoinedPeers(searchQuery, limit, offset)
- .getParticipantsInMeetingPreJoin()
Returns a list of participants waiting to join the meeting.
Kind: instance property of RTKParticipants
Returns a list of all participants in the meeting.
Kind: instance property of RTKParticipants
Returns a list of participants whose streams are currently consumed.
Kind: instance property of RTKParticipants
Returns a list of participants whose video streams are currently consumed.
Kind: instance property of RTKParticipants
Returns a list of participants whose audio streams are currently consumed.
Kind: instance property of RTKParticipants
Returns a list of participants who have been pinned.
Kind: instance property of RTKParticipants
Returns all added participants irrespective of whether they are currently in the meeting or not
Kind: instance property of RTKParticipants
Return the controls for Picture-in-Picture
Kind: instance property of RTKParticipants
Controls how participants are selected for the participants.active map.
In 'ACTIVE_GRID' mode, the SDK automatically moves speakers into the grid, replacing non-speakers as needed.
In 'PAGINATED' mode, participants are split into numbered pages starting at 1, with up to maxActiveParticipantsCount participants per page. Use setPage(page) to select which page populates participants.active. Speaking does not move participants between pages. If all participants fit on page 1, page 2 is empty.
In 'MANUAL' mode, the application controls participant selection and media subscriptions instead of relying on the SDK's automatic grid or pagination.
Reconnect preserves the current mode; an unavailable paginated page is adjusted.
Kind: instance property of RTKParticipants
This indicates the current page that has been set by the user in PAGINATED mode. PAGINATED starts at page 1. ACTIVE_GRID and MANUAL use page 0.
Kind: instance property of RTKParticipants
This stores the participantId of the last participant who spoke in the meeting.
Kind: instance property of RTKParticipants
Keeps a list of all participants who have been present in the selected peers list.
Kind: instance property of RTKParticipants
Returns the number of participants who are joined in the meeting.
Kind: instance property of RTKParticipants
Returns the maximum number of participants that can be present in the active map.
Kind: instance property of RTKParticipants
Returns the number of pages that are available in the meeting in PAGINATED mode. If the meeting is in ACTIVE_GRID mode, this value will be 0.
Kind: instance property of RTKParticipants
Updates the maximum number of participants that are populated in the active map.
Kind: instance method of RTKParticipants
| Param | Type | Description |
|---|---|---|
| limit | number |
Updated max limit |
Accepts requests from waitlisted participants if user has appropriate permissions.
Kind: instance method of RTKParticipants
| Param | Type | Description |
|---|---|---|
| id | string |
peerId or userId of the waitlisted participant. |
We need a new event for socket service events since if we send them all together, sequence of events can be unreliable
Kind: instance method of RTKParticipants
| Param | Type |
|---|---|
| userIds | Array.<string> |
Rejects requests from waitlisted participants if user has appropriate permissions.
Kind: instance method of RTKParticipants
| Param | Type | Description |
|---|---|---|
| id | string |
participantId of the waitlisted participant. |
Sets the view mode of the meeting to either ACTIVE_GRID, PAGINATED, or MANUAL.
Kind: instance method of RTKParticipants
| Param | Type | Description |
|---|---|---|
| viewMode | ViewMode |
The mode in which the active map should be populated |
Kind: instance method of RTKParticipants
| Param | Type |
|---|---|
| peerIds | Array.<string> |
| [kinds] | Array.<('audio'|'video'|'screenshareAudio'|'screenshareVideo')> |
Kind: instance method of RTKParticipants
| Param | Type |
|---|---|
| peerIds | Array.<string> |
| [kinds] | Array.<('audio'|'video'|'screenshareAudio'|'screenshareVideo')> |
Populates the active map with participants present in the page number
indicated by the parameter page in PAGINATED mode.
Does not do anything in ACTIVE_GRID mode.
Kind: instance method of RTKParticipants
| Param | Type | Description |
|---|---|---|
| page | number |
The page number to be set. |
Disables audio for all participants in the meeting.
Kind: instance method of RTKParticipants
| Param | Type | Description |
|---|---|---|
| allowUnmute | boolean |
Allow participants to unmute after they are muted. |
Disables video for all participants in the meeting.
Kind: instance method of RTKParticipants
Kicks all participants from the meeting.
Kind: instance method of RTKParticipants
Broadcasts the message to participants
If no target is specified it is sent to all participants including self.
Kind: instance method of RTKParticipants
| Param | Type | Description |
|---|---|---|
| type | string |
|
| payload | BroadcastMessagePayload |
|
| target | BroadcastMessageTarget |
object containing a list of participantIds or object containing presetName - every user with that preset will be sent the message |
Returns all peers currently present in the room
If you are in a group call, use meeting.participants.joined
instead
Kind: instance method of RTKParticipants
| Param | Type |
|---|---|
| searchQuery | string |
| limit | number |
| offset | number |
Returns all peers currently in the room, is a non paginated call
and should only be used if you are in a non room joined state,
if in a joined group call, use meeting.participants.joined
Kind: instance method of RTKParticipants