setPositions
setPositions
- setPositions(
params):Promise<void>
Assigns a position in the layout for multiple members.
Parameters
params
Object containing the parameters of the method.
positions
Mapping of member IDs and positions to assign. See VideoPositions.
Returns
Promise<void>
Example
In this example, we wait for a room to start and then set the roomlayout to "6x6".
When a second member joins the room, we set the position of all older members to "off-canvas".
This example assumes that there is a RoomSession
already active and that members are joining the room.