Thanks to the implementation of Custom layout map API in Eyeson, you can now change the layout without having the need for pre-defined layouts provided by us. This has some major upsides regarding the control over the stream content.
In this tutorial we want to use the adaptive layout to arrange users around an image for a seamless presentation.
Example web app
You can instantly update the stream content during a live session using some HTML and Javascript.
This example includes
- a local image uploading script which draws it on a canvas
- layout calculation depending on the image size
- sending canvas and calculated layout to show in Eyeson via AJAX requests