Service to auto-adjust layout values based on the event type, number of participants, and sharing conditions. Useful for dynamically adjusting UI elements in different event settings.
Method
autoAdjust
Dynamically calculates and adjusts layout values (e.g., grid columns) based on conditions such as event type, participant count, and sharing status.
Param: options
Configuration options for the auto-adjustment.
Param: options.n
Number of participants in the event.
Param: options.eventType
Type of event (e.g., 'broadcast', 'chat', 'conference').
Param: options.shareScreenStarted
Indicates whether screen sharing is active.
Param: options.shared
Indicates if another resource is currently shared.
Returns
A promise resolving to an array of two adjusted layout values.
Example
const [primaryLayout, secondaryLayout] = awaitautoAdjustService.autoAdjust({ n:5, eventType:'conference', shareScreenStarted:false, shared:false, }); console.log(primaryLayout, secondaryLayout); // Adjusted layout values based on inputs
Service
AutoAdjust
Description
Service to auto-adjust layout values based on the event type, number of participants, and sharing conditions. Useful for dynamically adjusting UI elements in different event settings.
Method
autoAdjust Dynamically calculates and adjusts layout values (e.g., grid columns) based on conditions such as event type, participant count, and sharing status.
Param: options
Configuration options for the auto-adjustment.
Param: options.n
Number of participants in the event.
Param: options.eventType
Type of event (e.g., 'broadcast', 'chat', 'conference').
Param: options.shareScreenStarted
Indicates whether screen sharing is active.
Param: options.shared
Indicates if another resource is currently shared.
Returns
A promise resolving to an array of two adjusted layout values.
Example