Skip to main content

Overview

The waiting room makes members wait in a holding area before entering the meeting, and the host admits them one by one.
  • To check whether it’s enabled, read RoomInfo.waitingRoomDisabled (true means the waiting room is off)
  • You can preset it with MeetingCreateReq.waitingRoomDisabled when creating the meeting
  • During the meeting, the host / a co-host can change it

Turn the waiting room on or off

When the state changes, all members receive:

View waiting members

Returns [WaitingRoomUserInfo], including userId, name, avatar, and at (the time they entered the waiting room). Events notify you when someone enters or exits the waiting room, so the host can refresh the list incrementally:

Admit and move back

A member moved back to the waiting room receives:

Moved into the waiting room on entry

When the meeting has the waiting room on, enterRoom for a non-host throws apiError with code 2118 (constant SMeetingError.waitingRoomCode, since 1.14.0). The server has already put the user on the waiting list, so the app should show a waiting page instead of treating it as a failure. After the host admits the user, the out-of-meeting message meeting(_:imAdminMoveOutWaitingRoom:) arrives; then call enterRoom again.

Wait for the host to join

When the meeting has “no one may join before the host” turned on and none of the host / co-host / creator has joined, enterRoom throws apiError with code 2120 (constant SMeetingError.enterBeforeHostCode, since 1.14.0). The server has already put the user on the waiting-for-host list, so the app should show a “waiting for the host” page.
While waiting, progress arrives as out-of-meeting messages (call enableIm() first; see Out-of-meeting messages):
  • The server checks in the order password → 2120 → 2118: when both switches are on, the user first waits for the host; re-entering after the host joins then returns 2118 and moves the user into the waiting room
  • The same account may wait for different meetings one after another, so check meetingId / roomNo to tell whether a message is for the meeting currently being waited for

Members stop waiting on their own

If a member in the waiting room or waiting for the host doesn’t want to keep waiting:
Provide either meetingId or roomNo. This API only requires login, not being in a meeting. It removes the user from both the waiting list and the waiting-for-host list, so call it when leaving either kind of waiting page.