Class StreamSuccessVideo

Streams a video successfully by managing the local stream, updating parameters, and handling video transport.

This method initiates the video streaming process by updating the local video stream with the new stream, creating or connecting to the video transport, and notifying participants of the streaming status.

The options for streaming the video.

The media stream to be used for the video.

The parameters required for streaming.

The socket instance for real-time communication.

The list of participants in the session.

The local media stream.

Indicates if the transport has already been created.

Indicates if the video transport has been created.

Indicates if the video is already on.

Indicates if a video action is being performed.

The parameters for the video producer.

The local video stream.

The default video device ID.

The user's default video input device.

Additional parameters for the producer.

Additional parameters for the video.

The level of the user (e.g., host, participant).

The member's name in the session.

Indicates if the main window should be updated.

Indicates if the screen is locked.

Indicates if the screen is shared.

Indicates if the video is already on.

Function to show alert messages.

Function to update the participants list.

Function to update the transport creation state.

Function to update the video status.

Function to update the video action state.

Function to update the local stream.

Function to update the local video stream.

Function to update the default video input device.

Function to update the current facing mode.

Function to update the default video device ID.

Function to update the allowed state.

Function to update the main window state.

Function to create a send transport for video.

Function to connect the send transport for video.

Function to resume audio transport.

A promise that resolves when the video has been successfully streamed.

Throws an error if there is an issue with streaming the video.

await streamSuccessVideo({
stream: newVideoStream,
parameters: {
socket: socketInstance,
localStream: null,
// other parameters...
},
});

Constructors

Methods

Constructors

Methods

  • Streams a video successfully by managing the local stream, updating parameters, and handling video transport.

    Parameters

    Returns Promise<void>

    A promise that resolves when the video has been successfully streamed.

    Will throw an error if there is an issue with streaming the video.