The options for starting screen sharing.
A promise that resolves when the screen sharing process is complete.
const options = {
parameters: {
shared: false,
showAlert: showAlertFunction,
updateShared: updateSharedFunction,
mediaDevices: navigator.mediaDevices,
onWeb: true,
targetWidth: 1280,
targetHeight: 720,
streamSuccessScreen: streamSuccessFunction,
},
};
startShareScreen(options)
.then(() => {
console.log('Screen sharing started successfully');
})
.catch(error => {
console.error('Error starting screen share:', error);
});
Starts the screen sharing process.