Handles changes in screen events such as broadcast, chat, and conference.
The options for handling screen changes.
Indicates if the screen has changed.
The parameters for handling screen changes.
The type of event (e.g., "broadcast", "chat", "conference").
Indicates if screen sharing has started.
Indicates if the screen is shared.
Flag to add basic controls.
Function to update the main height and width.
Function to update the addForBasic flag.
The limit for item pages.
Function to update the item page limit.
Function to reorder streams.
A promise that resolves when the screen changes have been handled.
Throws an error if there is an issue handling screen changes.
const options = { changed: true, parameters: { eventType: 'broadcast', shareScreenStarted: false, shared: false, addForBasic: false, updateMainHeightWidth: (value) => { console.log(updated) }, updateAddForBasic: (value) => { console.log(updated) }, itemPageLimit: 1, updateItemPageLimit: (value) => { console.log(updated) }, reorderStreams: async (params) => { }, },};await onScreenChanges(options); Copy
const options = { changed: true, parameters: { eventType: 'broadcast', shareScreenStarted: false, shared: false, addForBasic: false, updateMainHeightWidth: (value) => { console.log(updated) }, updateAddForBasic: (value) => { console.log(updated) }, itemPageLimit: 1, updateItemPageLimit: (value) => { console.log(updated) }, reorderStreams: async (params) => { }, },};await onScreenChanges(options);
Handles changes in screen events such as broadcast, chat, and conference.
Param: options
The options for handling screen changes.
Param: options.changed
Indicates if the screen has changed.
Param: options.parameters
The parameters for handling screen changes.
Param: options.parameters.eventType
The type of event (e.g., "broadcast", "chat", "conference").
Param: options.parameters.shareScreenStarted
Indicates if screen sharing has started.
Param: options.parameters.shared
Indicates if the screen is shared.
Param: options.parameters.addForBasic
Flag to add basic controls.
Param: options.parameters.updateMainHeightWidth
Function to update the main height and width.
Param: options.parameters.updateAddForBasic
Function to update the addForBasic flag.
Param: options.parameters.itemPageLimit
The limit for item pages.
Param: options.parameters.updateItemPageLimit
Function to update the item page limit.
Param: options.parameters.reorderStreams
Function to reorder streams.
Returns
A promise that resolves when the screen changes have been handled.
Throws
Throws an error if there is an issue handling screen changes.
Example