demote

View as Markdown

demote

  • demote(params): Promise<void>

Demotes a participant from “member” to “audience”. See promote.

Parameters

NameTypeDescription
paramsObject-
params.memberIdstringId of the member to affect.
params.mediaAllowed?"all" | "audio-only" | "video-only"Specifies the media that the client will be allowed to receive. An audience participant cannot send any media.

Returns

Promise<void>

Example

1await roomSession.demote({
2 memberId: "de550c0c-3fac-4efd-b06f-b5b8614b8966",
3 mediaAllowed: "all",
4});