RoomParticipantStore provides a comprehensive set of APIs to manage room participant related operations.state publisher. Subscribe to it to receive real-time updates about participant list.Property | Type | Description |
participantList | Participant list. | |
participantListCursor | String | Participant list cursor. |
audienceList | [RoomUser] | Audience list (for webinar room). |
audienceListCursor | String | Audience list cursor. |
adminList | [RoomUser] | Admin list. |
messageDisabledUserList | [RoomUser] | Message disabled user list. |
participantListWithVideo | Participant list with video. | |
participantWithScreen | Participant sharing screen. | |
pendingDeviceApplications | Pending device application list. | |
pendingDeviceInvitations | Pending device invitation list. | |
speakingUsers | [String : Int] | Speaking users and their volume. |
networkQualities | [String : NetworkInfo] | User network quality info. |
pendingParticipantList | Pending participant list. | |
localParticipant | Local participant info. |
Function | Description |
Create object instance. | |
Participant event callback. | |
Participant event callback. | |
Get participant list. | |
Get audience list (for webinar room). | |
Search users by keyword. | |
Promote audience to participant (for webinar room). | |
Demote participant to audience (for webinar room). | |
Transfer owner. | |
Set admin. | |
Revoke admin. | |
Kick user. | |
Update participant name card. | |
Update participant metadata. | |
Mute microphone. | |
Unmute microphone. | |
Close participant device. | |
Mute user. | |
Disable all devices. | |
Mute all users. | |
Request to open device. | |
Cancel open device request. | |
Approve open device request. | |
Reject open device request. | |
Invite to open device. | |
Cancel open device invitation. | |
Accept open device invitation. | |
Decline open device invitation. |
static create(roomID: string): RoomParticipantStore {return StoreRegistry.getStore(StoreType.RoomParticipantStore, roomID) as RoomParticipantStore}
Parameter | Type | Description |
roomID | String | Room ID. |
abstract addRoomParticipantListener(listener: RoomParticipantListener): void
Parameter | Type | Description |
listener | Listener. |
abstract removeRoomParticipantListener(listener: RoomParticipantListener): void
Parameter | Type | Description |
listener | Listener. |
abstract getParticipantList(cursor?: string): Promise<ListResult<RoomParticipant>>
Parameter | Type | Description |
cursor | String? | Pagination cursor. |
abstract getAudienceList(cursor?: string): Promise<ListResult<RoomUser>>
Parameter | Type | Description |
cursor | String? | Pagination cursor. |
abstract searchUsers(keyword: string): Promise<ListResult<RoomUser>>
Parameter | Type | Description |
keyword | String | Search keyword. |
abstract promoteAudienceToParticipant(userID: string): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
abstract demoteParticipantToAudience(userID: string): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
abstract transferOwner(userID: string): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
abstract setAdmin(userID: string): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
abstract revokeAdmin(userID: string): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
abstract kickUser(userID: string): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
abstract updateParticipantNameCard(userID: string, nameCard: string): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
nameCard | String | Name card. |
abstract updateParticipantMetaData(userID: string, metaData: Map<string, string>): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
metaData | [String: String] | Metadata. |
abstract muteMicrophone(): void
abstract unmuteMicrophone(): Promise<void>
abstract closeParticipantDevice(userID: string, device: DeviceType): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
abstract disableUserMessage(userID: string, disable: boolean): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
disable | Bool | Whether to mute. |
abstract disableAllDevices(device: DeviceType, disable: boolean): Promise<void>
Parameter | Type | Description |
device | DeviceType | Device type. |
disable | Bool | Whether to disable. |
abstract disableAllMessages(disable: boolean): Promise<void>
Parameter | Type | Description |
disable | Bool | Whether to mute. |
abstract requestToOpenDevice(device: DeviceType, timeout?: number): Promise<void>
Parameter | Type | Description |
device | DeviceType | Device type. |
timeout | Int | Timeout (in seconds). |
abstract cancelOpenDeviceRequest(device: DeviceType): Promise<void>
Parameter | Type | Description |
device | DeviceType | Device type. |
abstract approveOpenDeviceRequest(device: DeviceType, userID: string): Promise<void>
Parameter | Type | Description |
device | DeviceType | Device type. |
userID | String | User ID. |
abstract rejectOpenDeviceRequest(device: DeviceType, userID: string): Promise<void>
Parameter | Type | Description |
device | DeviceType | Device type. |
userID | String | User ID. |
abstract inviteToOpenDevice(userID: string, device: DeviceType, timeout?: number): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
timeout | Int | Timeout (in seconds). |
abstract cancelOpenDeviceInvitation(userID: string, device: DeviceType): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
abstract acceptOpenDeviceInvitation(userID: string, device: DeviceType): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
abstract declineOpenDeviceInvitation(userID: string, device: DeviceType): Promise<void>
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
Enum Value | Value | Description |
owner | 0 | Owner. |
admin | 1 | Admin. |
generalUser | 2 | General user. |
Enum Value | Description |
scheduled | Scheduled. |
inCalling | In calling. |
callTimeout | Call timeout. |
callRejected | Call rejected. |
inRoom | In room. |
Enum Value | Description |
kickedByAdmin | Kicked by admin. |
replacedByAnotherDevice | Replaced by another device. |
kickedByServer | Kicked by server. |
connectionTimeout | Connection timeout. |
invalidStatusOnReconnect | Invalid status on reconnect. |
roomLimitExceeded | Room limit exceeded. |
Method | Description |
onParticipantJoined | Triggered when a participant joins the room. |
onParticipantLeft | Triggered when a participant leaves the room. |
onAudiencePromotedToParticipant | Triggered when an audience is promoted to participant. |
onParticipantDemotedToAudience | Triggered when a participant is demoted to audience. |
onOwnerChanged | Triggered when the owner changes. |
onAdminSet | Triggered when an admin is set. |
onAdminRevoked | Triggered when an admin is revoked. |
onKickedFromRoom | Triggered when kicked from the room. |
onParticipantDeviceClosed | Triggered when a participant's device is closed. |
onUserMessageDisabled | Triggered when a user is muted. |
onAllDevicesDisabled | Triggered when all devices are disabled. |
onAllMessagesDisabled | Triggered when all users are muted. |
onDeviceRequestReceived | Triggered when a device request is received. |
onDeviceRequestCancelled | Triggered when a device request is cancelled. |
onDeviceRequestTimeout | Triggered when a device request times out. |
onDeviceRequestApproved | Triggered when a device request is approved. |
onDeviceRequestRejected | Triggered when a device request is rejected. |
onDeviceRequestProcessed | Triggered when a device request is processed. |
onDeviceInvitationReceived | Triggered when a device invitation is received. |
onDeviceInvitationCancelled | Triggered when a device invitation is cancelled. |
onDeviceInvitationTimeout | Triggered when a device invitation times out. |
onDeviceInvitationAccepted | Triggered when a device invitation is accepted. |
onDeviceInvitationDeclined | Triggered when a device invitation is declined. |
Property | Type | Description |
participantList | Participant list. | |
participantListCursor | String | Participant list cursor. |
audienceList | [RoomUser] | Audience list (for webinar room). |
audienceListCursor | String | Audience list cursor. |
adminList | [RoomUser] | Admin list. |
messageDisabledUserList | [RoomUser] | Message disabled user list. |
participantListWithVideo | Participant list with video. | |
participantWithScreen | Participant sharing screen. | |
pendingDeviceApplications | Pending device application list. | |
pendingDeviceInvitations | Pending device invitation list. | |
speakingUsers | [String : Int] | Speaking users and their volume. |
networkQualities | [String : NetworkInfo] | User network quality info. |
pendingParticipantList | Pending participant list. | |
localParticipant | Local participant info. |
フィードバック