Handles the successful initiation of screen sharing.
Will throw an error if there is an issue with screen sharing.
await streamSuccessScreen({ stream: mediaStream, parameters: { socket, transportCreated, localStreamScreen: null, screenAlreadyOn: false, screenAction: true, transportCreatedScreen: false, hostLabel: "Host", eventType: "conference", showAlert, annotateScreenStream: false, updateTransportCreatedScreen, updateScreenAlreadyOn, updateScreenAction, updateTransportCreated, updateLocalStreamScreen, updateShared, updateIsScreenboardModalVisible, sleep, createSendTransport, connectSendTransportScreen, disconnectSendTransportScreen, stopShareScreen, reorderStreams, prepopulateUserMedia, rePort, },}); Copy
await streamSuccessScreen({ stream: mediaStream, parameters: { socket, transportCreated, localStreamScreen: null, screenAlreadyOn: false, screenAction: true, transportCreatedScreen: false, hostLabel: "Host", eventType: "conference", showAlert, annotateScreenStream: false, updateTransportCreatedScreen, updateScreenAlreadyOn, updateScreenAction, updateTransportCreated, updateLocalStreamScreen, updateShared, updateIsScreenboardModalVisible, sleep, createSendTransport, connectSendTransportScreen, disconnectSendTransportScreen, stopShareScreen, reorderStreams, prepopulateUserMedia, rePort, },});
The options for the screen sharing success handler.
A promise that resolves when the screen sharing setup is complete.
Handles the successful initiation of screen sharing.
Throws
Will throw an error if there is an issue with screen sharing.
Example