Class CheckScreenShare

Checks the current screen sharing status and either stops or requests screen sharing based on the provided parameters.

The options for checking screen share.

The parameters for screen sharing.

Indicates if the screen is currently being shared.

Function to show alerts.

Indicates if the whiteboard session has started.

Indicates if the whiteboard session has ended.

Indicates if the breakout room session has started.

Indicates if the breakout room session has ended.

Function to stop screen sharing.

Function to request screen sharing.

A promise that resolves when the screen sharing status has been checked and the appropriate action has been taken.

Will log an error message if an error occurs during the process.

const options = {
parameters: {
shared: false,
whiteboardStarted: false,
whiteboardEnded: false,
breakOutRoomStarted: false,
breakOutRoomEnded: false,
stopShareScreen: async () => { /* Logic to stop screen sharing */ },
requestScreenShare: async () => { /* Logic to request screen sharing */ },
showAlert: (alert) => { console.log(alert.message); },
},
};

await checkScreenShareService.checkScreenShare(options);
// Output: Logic to request screen sharing will be executed.

Constructors

Methods

Constructors

Methods

  • Checks the current screen sharing status and either stops or requests screen sharing based on the provided parameters.

    Parameters

    Returns Promise<void>

    A promise that resolves when the screen sharing status has been checked and the appropriate action has been taken.

    Will log an error message if an error occurs during the process.