Class StopShareScreen

Stops the screen sharing process and updates the relevant parameters and states.

This method updates the internal state to reflect that screen sharing has ended, cleans up local media tracks, and reorders the streams in the application.

The options for stopping the screen share.

The parameters required for stopping the screen share.

Function to get updated parameters.

Indicates if the screen is currently shared.

Indicates if the screen sharing has started.

Indicates if the screen sharing has ended.

Indicates if the main window needs to be updated.

Indicates if receiving is deferred.

The label of the host.

Indicates if the screen is locked.

Indicates if full display is forced.

Indicates if it is the first all.

Indicates if it is the first round.

The local screen stream.

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

Indicates if full display was previously forced.

Indicates if the screen stream is annotated.

Function to update the shared state.

Function to update the share screen started state.

Function to update the share ended state.

Function to update the main window state.

Function to update the defer receive state.

Function to update the lock screen state.

Function to update the force full display state.

Function to update the first all state.

Function to update the first round state.

Function to update the local screen stream.

Function to update the main height and width.

Function to update the annotate screen stream state.

Function to update the screenboard modal visibility.

Function to disconnect the send transport screen.

Function to prepopulate user media.

Function to reorder streams.

Function to get videos.

A promise that resolves when the screen sharing process is stopped.

Throws an error if there is an issue during the screen share stopping process.

await stopShareScreen({
parameters: {
socket: mySocket,
shared: true,
shareScreenStarted: true,
// other parameters...
},
});

Constructors

Methods

Constructors

Methods