setLayout
setLayout
- setLayout(
params):Promise<void>
Sets a layout for the room. You can obtain a list of available layouts with getLayouts.
Parameters
params
Object containing the parameters of the method.
name
Name of the layout.
positions
Positions to assign as soon as the new layout is set.
Returns
Promise<void>
Permissions
room.set_layoutroom.set_position(if you need to assign positions)
You need to specify the permissions when creating the Video Room Token on the server side.
Example
Set the 6x6 layout: