setPositions

View as Markdown

setPositions

  • setPositions(params): Promise<void>

Assigns a position in the layout for multiple members.

Parameters

params
object

Object containing the parameters of the method.

positions
VideoPositions

Mapping of member IDs and positions to assign.

Returns

Promise<void>

Permissions

  • room.set_position

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

Example

1await roomSession.setPositions({
2 positions: {
3 "1bf4d4fb-a3e4-4d46-80a8-3ebfdceb2a60": "reserved-1",
4 "e0c5be44-d6c7-438f-8cda-f859a1a0b1e7": "auto",
5 },
6});