setMemberPosition

View as Markdown

setMemberPosition

  • setMemberPosition(params): Promise<void>

Assigns a position in the layout to the specified member.

Parameters

params
object

Object containing the parameters of the method.

memberId
string

Id of the member to affect. If omitted, affects the current member.

position
VideoPosition

Position to assign in the layout.

Returns

Promise<void>

Permissions

  • room.self.set_position: to set the position for the local member.
  • room.member.set_position: to set the position for a remote member.

You need to specify the permissions when creating the Video Room Token on the server side.

Example

1await roomSession.setMemberPosition({
2 memberId: "1bf4d4fb-a3e4-4d46-80a8-3ebfdceb2a60",
3 position: "off-canvas",
4});