Class StreamSuccessScreen

Handles the successful initiation of screen sharing.

This method sets up the necessary transport connections for screen sharing, updates relevant application states, and notifies participants of the screen sharing status.

The options for the screen sharing success handler.

The media stream to be shared.

The parameters required for screen sharing.

The socket instance for real-time communication.

Flag indicating if the transport is already created.

The local screen media stream.

Flag indicating if the screen is already being shared.

Flag indicating if the screen share action is requested.

Flag indicating if the screen transport is created.

The label of the host for this session.

The type of event (e.g., conference).

Optional function to show alert messages.

Flag indicating if screen annotation is enabled.

Function to update the screen transport creation state.

Function to update the screen sharing state.

Function to update the screen action state.

Function to update the transport creation state.

Function to update the local screen stream.

Function to update the shared state.

Function to update the screenboard modal visibility.

Function to pause execution for a specified time.

Function to create a send transport for screen sharing.

Function to connect the send transport for screen sharing.

Function to disconnect the send transport for screen sharing.

Function to stop the screen sharing process.

Function to reorder streams based on current state.

Function to prepopulate user media based on current settings.

Function to reinitialize ports if needed.

A promise that resolves when the screen sharing setup is complete.

Throws an error if there is an issue during the screen sharing setup.

await streamSuccessScreen({
stream: newScreenStream,
parameters: {
socket: socketInstance,
localStreamScreen: null,
// other parameters...
},
});

Constructors

Methods

Constructors

Methods