Class OnScreenChanges

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);

Constructors

Methods

Constructors

Methods

  • Handles changes in screen events such as broadcast, chat, and conference.

    Parameters

    Returns Promise<void>

    A promise that resolves when the screen changes have been handled.

    Throws an error if there is an issue handling screen changes.