LayoutLayer

View as MarkdownOpen in Claude

Position, size, and state of a single layer in a video call layout. Layers are emitted by call.layoutLayers$ and update whenever the server reflows the layout.

Properties

height
numberRequired

Layer height as a percentage (0–100) of the room canvas.

layer_index
numberRequired

Z-order index assigned by the media server.

member_id
string

ID of the member occupying this layer, if any.

playing_file
booleanRequired

Whether a file (e.g. media playback) is currently rendered in this layer.

position
VideoPositionRequired

Named position slot for this layer (e.g. reserved-0). See VideoPosition.

reservation
stringRequired

Reservation name if this layer is reserved for a specific member.

visible
booleanRequired

Whether the layer is currently visible.

width
numberRequired

Layer width as a percentage (0–100) of the room canvas.

x
numberRequired

Layer x-coordinate (top-left corner) as a percentage (0–100) of the room canvas width.

y
numberRequired

Layer y-coordinate (top-left corner) as a percentage (0–100) of the room canvas height.

z_index
numberRequired

Stacking order; higher values render on top.