setMemberPosition
setMemberPosition
- setMemberPosition(
params):Promise<void>
Assigns a position in the layout to the specified member.
Parameters
params
Object containing the parameters of the method.
memberId
ID of the member to affect.
position
Position to assign in the layout.
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 that member to "off-canvas".
This example assumes that there is a RoomSession
already active and that members are joining the room.