promote
promote
- promote(
params):Promise<void>
Promotes a participant from “audience” to “member”. See demote.
Parameters
params
Object containing the parameters of the method.
memberId
ID of the audience participant to promote.
joinAudioMuted
Force the member’s audio to be muted right after the promotion.
joinVideoMuted
Force the member’s video to be muted right after the promotion.
mediaAllowed
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.
permissions
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.