> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # setLayout > setLayout method for the RoomSession class. ### setLayout * **setLayout**(`params`): `Promise` Sets a layout for the room. You can obtain a list of available layouts with [getLayouts](/docs/browser-sdk/v3/js/reference/video/room-session/get-layouts). #### Parameters **`params`** `object` Object containing the parameters of the method. --- **`name`** `string` Name of the layout. --- **`positions`** `VideoPositions` Positions to assign as soon as the new layout is set. --- #### Returns `Promise` #### Permissions * `room.set_layout` * `room.set_position` (if you need to assign positions) You need to specify the permissions when [creating the Video Room Token](/docs/apis/rest/video/room-tokens/create-room-token) on the server side. #### Example Set the 6x6 layout: ```javascript await roomSession.setLayout({ name: "6x6" }); ``` > setLayout method for the RoomSession class.