promote
promote
- promote(
params):Promise<void>
Promotes a participant from “audience” to “member”. See demote.
Parameters
Object containing the parameters of the method.
ID of the audience participant to promote.
Force the member’s audio to be muted right after the promotion.
Force the member’s video to be muted right after the promotion.
Specifies the media that the client will be allowed to send. A member participant can always receive all media.
Metadata to assign to the member.
List of permissions to grant when the Audience participant will become a Member.
Returns
Promise<void>
Example
In this example, we demote a member to audience as soon as they join the room.
After 10 seconds, we promote the member back to a roomSession member.
This example assumes that there is a RoomSession
already active and that members are joining the room.