Checks the current screen sharing status and either stops or requests screen sharing based on the provided parameters.
The options for checking screen share.
A promise that resolves when the screen sharing status has been checked and the appropriate action has been taken.
Checks the current screen sharing status and either stops or requests screen sharing based on the provided parameters.
Param: options
The options for checking screen share.
Param: options.parameters
The parameters for screen sharing.
Param: options.parameters.shared
Indicates if the screen is currently being shared.
Param: options.parameters.showAlert
Function to show alerts.
Param: options.parameters.whiteboardStarted
Indicates if the whiteboard session has started.
Param: options.parameters.whiteboardEnded
Indicates if the whiteboard session has ended.
Param: options.parameters.breakOutRoomStarted
Indicates if the breakout room session has started.
Param: options.parameters.breakOutRoomEnded
Indicates if the breakout room session has ended.
Param: options.parameters.stopShareScreen
Function to stop screen sharing.
Param: options.parameters.requestScreenShare
Function to request screen sharing.
Returns
A promise that resolves when the screen sharing status has been checked and the appropriate action has been taken.
Throws
Will log an error message if an error occurs during the process.
Example