-
Notifications
You must be signed in to change notification settings - Fork 354
Layout
This wiki explains the layout of remote videos in the SDK.
Developer can update the remote videos' layout type for the current meeting from the 5 layout types available options for the specific participant/device only.
Screenshot is added from our Kitchen Sink app.
To know about changeVideoLayout
APIs in detail, please visit → https://webex.github.io/webex-js-sdk/api/
Uses below API to change layout type for the current meeting for the specific participant/device only
changeVideoLayout(layoutType, renderInfo = {})
Asynchronous | Yes |
Parameters | layoutType, renderInfo |
Returns | promise |
layoutType
possible values user can pass ['Single', 'ActivePresence', 'Prominent', 'Equal', 'OnePlusN'].
renderInfo
preferred dimensions for the remote main and content streams (server can ignore it)
const layoutType = 'Equal';
const renderInfo = {
"main": {
"width": "1920",
"height": "1080"
}
};
meeting.changeVideoLayout(layoutType, renderInfo);
There are 5 layout types available in meetings, which are
- Single
- ActivePresence
- Prominent
- Equal
- OnePlusN
We can check that in our public Kitchen Sink app.
Types with screenshots are added below -
Screenshots are added from our Kitchen Sink app.
Caution
- Introducing the Webex Web Calling SDK
- Core Concepts
- Quickstart guide
- Authorization
- Basic Features
- Advanced Features
- Introduction
- Quickstart Guide
- Basic Features
- Advanced Features
- Multistream
- Migrating SDK version 1 or 2 to version 3