Webinar Stage, Access Requests and Publish Permissions
How virtual stage works in webinar WebRTC meetings: who can publish media, host approval, RTKStage APIs, presets, and UI Kit components.
This page summarises Cloudflare RealtimeKit documentation on the virtual stage: a pattern for webinars, town halls, and live events where only some participants broadcast audio and video while others stay in the audience. The managed configuration replaces a plain publish–subscribe model with permission gates, host approval, and the meeting.stage APIs described in Stage Management.
Virtual stage: who can publish audio and video in a webinar
Section titled “Virtual stage: who can publish audio and video in a webinar”A virtual stage limits who actively participates with camera and microphone in high-attendance sessions. Meeting — Stage states:
Meetings can be configured with a virtual stage, which helps you manage who actively participates with audio and video during high-attendance sessions.
When a participant is on the stage, they are visible in the grid and they can publish their audio and video to everyone in the meeting. Participants who are off the stage cannot publish media, but they can still fully engage through features like chat, polls, Q&A, and plugins—making the experience interactive without overwhelming the live video layout.
Hosts keep control: they can approve or deny request to join stage flows, or invite and remove people from the stage. That model matches RealtimeKit — Webinars and live events, which notes you can keep attendees view-only until a host grants stage access.
The RTKStage module describes the same idea in API terms: the stage is a virtual area where streams are visible; off-stage users consume media but do not produce it.
When to use stage mode instead of a group call
Section titled “When to use stage mode instead of a group call”Use stage-oriented presets and meeting.stage when you need structured events (webinars, AMAs, town halls) with a small set of broadcasters and a large audience. For everyone-publish meetings, much of the participant grid logic in RTKParticipants (ACTIVE_GRID, pagination, subscribe) matters more than stage queues.
Stage management APIs: meeting.stage namespace
Section titled “Stage management APIs: meeting.stage namespace”Stage Management explains that RealtimeKit can configure less privileged users not to publish by default; they may then request permission, and a privileged user grants or denies access. The stage module lives at meeting.stage (for example console.log("Stage object:", meeting.stage) in the guide).
| Role | Typical actions | API surface |
|---|---|---|
| Host / presenter | List requests, grant, deny, kick from stage, join/leave stage | getAccessRequests(), grantAccess(), denyAccess(), kick(), join(), leave() |
| Viewer | Request stage, cancel request, join after approval, leave stage | requestAccess(), cancelRequestAccess(), join(), leave() |
RTKStage lists the core methods:
getAccessRequests()— fetch stage access requests from viewersrequestAccess()— ask privileged users to join the stagecancelRequestAccess()— cancel a pending requestgrantAccess()— grant stage access (requirespermissions.acceptStageRequests; can respond to a request or invite others)denyAccess()— deny in response to a join requestjoin()— join the stage (preset permission or host acceptance required)leave()— leave the stagekick(userIds)— remove users from the stage (requirespermissions.acceptStageRequests)
Grant, deny, and kick: which IDs to pass
Section titled “Grant, deny, and kick: which IDs to pass”Privileged hosts call grantAccess, denyAccess, and kick with arrays of user IDs (userIds), not arbitrary display names. Stage Management — Grant Access suggests resolving them from participants, for example meeting.participants.toArray().map(p => p.userId) in JavaScript. Each RTKParticipant exposes both id (peer ID for maps) and userId; stage kicks use userIds per RTKStage — kick.
stageStatus and local stage state: pending request vs on stage
Section titled “stageStatus and local stage state: pending request vs on stage”Track the local user with meeting.stage.status (Stage Management — Status) and participant.stageStatus on remote peers (RTKParticipant — stageStatus).
| Status | Meaning |
|---|---|
ON_STAGE |
On stage; sharing audio and video |
OFF_STAGE |
In the session but not on stage; not sharing AV |
REQUESTED_TO_JOIN_STAGE |
Pending host decision |
ACCEPTED_TO_JOIN_STAGE |
Host accepted the request (user may still need to call join()) |
The status guide notes that a user allowed to join the stage directly may only see ON_STAGE and ACCEPTED_TO_JOIN_STAGE.
RTKSelf — roomState is separate: it covers meeting lifecycle (init, joined, waitlisted, rejected, kicked, left, ended). Do not confuse waitlist or waiting-room state with stage status.
Permission presets: stageAccess, produce media, and host privileges
Section titled “Permission presets: stageAccess, produce media, and host privileges”Stage behavior is enforced through RTKPermissionsPreset on meeting.self.permissions:
| Property | Role |
|---|---|
stageEnabled |
If true, stage management is available |
stageAccess |
ALLOWED, NOT_ALLOWED, or CAN_REQUEST — how the user interacts with the stage |
canProduceAudio / canProduceVideo / canProduceScreenshare |
Each may be ALLOWED, NOT_ALLOWED, or CAN_REQUEST |
| Host-side flags | e.g. acceptWaitingRequests, canAllowParticipantAudio, kickParticipant, canLivestream |
Set up a webinar — Manage stage requests ties presets to product behavior: a viewer preset with behaviour Can request to join can request stage access from the UI Kit; a presenter with Accept Requests can accept or reject. After acceptance, the viewer can publish like a presenter. Custom UIs should mirror that flow with the stage APIs.
grantAccess and kick require the accept stage requests privilege (RTKStage — grantAccess, kick).
Viewer flow: request access, get approved, join stage
Section titled “Viewer flow: request access, get approved, join stage”-
Viewer with
stageAccess/ produce permissions set to can request callsawait meeting.stage.requestAccess()(Stage Management — Request Access). Status becomesREQUESTED_TO_JOIN_STAGEuntil the host acts. -
Host lists pending requests via
meeting.stage.getAccessRequests()or UI Kit queue components (RTKStage — getAccessRequests). -
Host accepts with
grantAccess(userIds)or rejects withdenyAccess(userIds). On acceptance, the viewer may seeACCEPTED_TO_JOIN_STAGEand the RtkJoinStageDialog pattern: a confirmation when a request is approved or the host invites the local user. -
Viewer calls
await meeting.stage.join()to publish (Stage Management — Join Stage). Local media still flows through RTKSelf / RTKSelfMedia (enableAudio(),enableVideo(), tracks). -
To step down,
await meeting.stage.leave()stops stage publication (Stage Management — Leave Stage). Viewers can cancel a pending request withcancelRequestAccess().
UI Kit: stage queue and control components
Section titled “UI Kit: stage queue and control components”Prebuilt UI covers the same flows:
| Component | Purpose |
|---|---|
rtk-participants-stage-queue (also Angular, React RtkParticipantsStageQueue) |
Lists participants who requested stage access; accept/deny controls |
| RtkParticipantWaiting | Card with accept/reject for waitlist and stage requests |
| RtkStageActionButtonControlBar | Request, join, leave, cancel stage actions from stage status |
| RtkWebinarStageToggleButton | Local user provision to join the webinar stage |
Set up a webinar notes that RealtimeKit UI Kit handles stage requests by default; custom apps implement the same behavior via Stage Management.
Stage events: refresh host UI when requests change
Section titled “Stage events: refresh host UI when requests change”Subscribe on meeting.stage for queue updates and outcomes (Stage Management — Events):
| Event | When |
|---|---|
stageAccessRequestUpdate |
Access request list changed |
newStageRequest |
New participant requested the stage |
acceptPresentRequests |
Host accepted or invited to stage |
stageRequestApproved |
Request approved |
stageRequestRejected |
Host rejected |
Example from the guide:
meeting.stage.on("newStageRequest", (request) => { console.log("New stage request:", request);});React and React Native apps can also read m.stage.status via useRealtimeKitSelector when RealtimeKitProvider is mounted (see the same Stage Management sections).
Related meeting APIs (outside the stage module)
Section titled “Related meeting APIs (outside the stage module)”These appear in the same cluster but serve adjacent features—not substitutes for meeting.stage:
- Waiting room —
meeting.participants.waitlistedandacceptWaitingRoomRequest/rejectWaitingRoomRequest(RTKParticipants) gate meeting entry, not stage publication. - Livestream output —
meeting.livestream.start()/stop()(RTKLivestream) withcanLivestreamon the preset (RTKPermissionsPreset — canLivestream). - Meeting metadata —
meeting.meta.viewTypemay beGROUP_CALL,LIVESTREAM,CHAT, orAUDIO_ROOM(RTKMeta — viewType).
Join the client with RealtimeKitClient — join() and initialise tracks via RealtimeKitClient.initMedia() or meeting.self.setupTracks() as needed before stage publish.
Common mistakes
Section titled “Common mistakes”- Using peer ID where stage APIs expect user ID for
grantAccess,denyAccess, andkick. - Letting viewers call
enableVideo()/enableAudio()without a successful stage join when presets useNOT_ALLOWEDorCAN_REQUESTfor produce permissions. - Building a host queue only from
participants.joinedand ignoringgetAccessRequests()orstageAccessRequestUpdate. - Treating waiting room acceptance as stage acceptance—they use different APIs and presets (
acceptWaitingRequestsvs stage request handling in Set up a webinar). - Forgetting that
setName()on RTKSelf must run beforejoin()to propagate display names.
How to check this on your site
Section titled “How to check this on your site”- Follow Set up a webinar — Verify the webinar: join as presenter and confirm you can publish audio and video; join as viewer and confirm you cannot publish by default.
- As the viewer, request to join the stage (UI Kit or
meeting.stage.requestAccess()). - As the presenter, accept the request and confirm the viewer can publish after stage approval and
join(). - Log
meeting.stage.statusandparticipant.stageStatusduring the flow and compare to the status table in Stage Management — Status. - You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match your app or the official docs, email yimasynthetic@gmail.com with the page URL and the exact statement you are questioning so it can be corrected or clarified.