setLayout
Switches the call to a named video layout and (optionally) places specific members into reserved positions.
The set of valid layout names depends on the call’s room configuration and is exposed reactively via layouts$. Member position values come from VideoPosition.
Requires the setLayout capability — inspect call.capabilities$ before exposing layout controls.
Parameters
layout
Layout name. Must be one of the names emitted by layouts$.
positions
Map of member IDs to VideoPosition values. Pass an empty object to let the server assign positions automatically.
Returns
Promise<void> — resolves once the server has applied the layout.
Throws
Rejects if layout is not in the call’s available layouts.
Examples
Switch to a grid layout
Pin a member to a reserved slot
See
layouts$— observable list of available layout names.layout$— currently active layout.layoutLayers$— observable of position assignments.