OpenTok OT_LayoutContainer.js Example

The LayoutContainer class optimizes the layout of streams to fit within a specified area. To see this in action, press Connect and then copy and paste this url into a new browser tab and Connect again to see the streams dynamically resize as more are added and removed.

Github Repo
Blog Post