Skip to main content

Auto Layout

The standard layouts in MCU mode are 1,2,4,6 & 9 written out & has the same number of video spots. Depending on the number of participants the video stream layout is updated automatically.

auto layout scaling in eyeson

Figure 1. This GIF shows the basic behaviour of Eyeson in auto mode.

You can activate auto layout when you set layout="auto" and don't define any users in your request. For that you need the access_key to the video call. You will get the access key when you start a session.

export ACCESS_KEY=123...

$ curl -X POST \
-d "layout=auto" \
"https://api.eyeson.team/rooms/$ACCESS_KEY>/layout"

Figure 2. Short snippets for auto layout