demote
demote
- demote(
params):Promise<void>
Demotes a participant from “member” to “audience”. See promote.
Parameters
params
Object containing the parameters of the method.
memberId
ID of the member to affect.
mediaAllowed
Specifies the media that the client will be allowed to receive. An audience participant cannot send any media.
Returns
Promise<void>
Example
In this example, we demote a member to audience as soon as they join the room.
This example assumes that there is a RoomSession
already active and that members are joining the room.