setLayout

View as Markdown

setLayout

  • setLayout(params): Promise<void>

Sets a layout for the room. You can obtain a list of available layouts with getLayouts.

Parameters

NameTypeDescription
paramsObject-
params.namestringName of the layout.
params.positions?VideoPositionsPositions to assign as soon as the new layout is set.

Returns

Promise<void>

Example

Set the 6x6 layout:

1await roomSession.setLayout({ name: "6x6" });