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.
const options = {
parameters: {
shared: false,
showAlert: showAlertFunction,
whiteboardStarted: false,
whiteboardEnded: false,
breakOutRoomStarted: false,
breakOutRoomEnded: false,
stopShareScreen: stopShareScreenFunction,
requestScreenShare: requestScreenShareFunction,
},
};
checkScreenShare(options)
.then(() => {
console.log('Screen share checked successfully');
})
.catch((error) => {
console.error('Error checking screen share:', error);
});
Checks the current screen sharing status and either stops or requests screen sharing based on the provided parameters.