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. See VideoPositions.
Returns
Promise<void>
Example
In this example, we wait for a room to start and then set the layout for that room to "6x6".
This example assumes that there is a RoomSession
already active and that members are joining the room.