Service to manage and update video and audio components on a grid in the user interface. This service helps organize and configure participants and streams into different grid layouts.
Method
addVideosGrid
Adds video and audio cards to the main and alternate grids based on the parameters and configuration options provided.
Param: options
Configuration options for setting up the grid.
Param: options.mainGridStreams
Streams or participants to display on the main grid.
Param: options.altGridStreams
Streams or participants to display on the alternate grid.
Param: options.numtoadd
The number of items to add to the grid.
Param: options.numRows
The number of rows for the main grid.
Param: options.numCols
The number of columns for the main grid.
Param: options.actualRows
The actual rows currently displayed.
Param: options.lastrowcols
The number of columns in the last row of the grid.
Param: options.removeAltGrid
Whether to remove the alternate grid layout.
Param: options.parameters
Additional parameters for updating the grid, controlling appearance, and handling events.
Returns
A promise that resolves once the grid layout is updated.
Service
AddVideosGrid
Description
Service to manage and update video and audio components on a grid in the user interface. This service helps organize and configure participants and streams into different grid layouts.
Method
addVideosGrid Adds video and audio cards to the main and alternate grids based on the parameters and configuration options provided.
Param: options
Configuration options for setting up the grid.
Param: options.mainGridStreams
Streams or participants to display on the main grid.
Param: options.altGridStreams
Streams or participants to display on the alternate grid.
Param: options.numtoadd
The number of items to add to the grid.
Param: options.numRows
The number of rows for the main grid.
Param: options.numCols
The number of columns for the main grid.
Param: options.actualRows
The actual rows currently displayed.
Param: options.lastrowcols
The number of columns in the last row of the grid.
Param: options.removeAltGrid
Whether to remove the alternate grid layout.
Param: options.parameters
Additional parameters for updating the grid, controlling appearance, and handling events.
Returns
A promise that resolves once the grid layout is updated.
Example