Join and Leave Stage
This topic provides a comprehensive guide on performing stage management and participant control within Dyte's group call platform.
In Dyte, the
stage object, is accessible through the
meeting.stage property. This provides a range of methods to efficiently manage the stage and participants during session, such as joining and leaving the stage, as well as access control for participants. Additionally, you can also retrieve the list of viewers who have joined the session from the
meeting.stage.viewers array, and monitor participant requests to join the stage through the
To join the stage in a session, specific permissions are required, which are managed through Presets. To join the stage, use the following function:
// Participants with the media preset set to "Allowed"
// can join the stage directly without needing the host to accept their request.
// Participants with the media preset set to "Need to Request" must wait for
// the host to approve their request. Once the host grants permission,
// these participants can start producing media.
// to request access
To leave the stage, use the following function: