Class StreamSuccessAudio

Handles the successful streaming of audio by setting up the necessary transports and updating the relevant states.

This method updates the local media stream with the new audio track, manages the transport connection, and updates the participants' states to reflect changes in audio settings.

The options for streaming success audio.

The media stream containing the audio track.

The parameters required for setting up the audio stream.

The socket connection for real-time communication.

The list of participants in the session.

The local media stream that includes video and audio tracks.

Indicates if the audio transport has been created.

Indicates if the audio transport has been created.

Indicates if the audio is already active.

Indicates the microphone action state.

The current audio parameters for the producer.

The local audio stream.

The default audio device ID for the stream.

The user default audio input device.

Additional parameters for the producer.

Additional audio parameters.

Producer parameters for the audio.

The label of the host for this session.

The participant's level (e.g., admin, regular user).

The member name for identification.

Indicates if the main window needs to be updated.

Indicates if the screen is locked for participants.

Indicates if the screen is currently shared.

Indicates if the video stream is currently active.

Optional function to show alert messages.

Function to update the list of participants.

Function to update the audio transport created status.

Function to update the audio transport created status.

Function to update the audio active status.

Function to update the microphone action state.

Function to update the audio parameters.

Function to update the local stream.

Function to update the local audio stream.

Function to update the default audio device ID.

Function to update the default audio input device.

Function to update the main window status.

Function to create a send transport for audio.

Function to connect the send transport for audio.

Function to resume the send transport for audio.

Function to prepopulate user media based on current settings.

A promise that resolves when the audio streaming setup is complete.

Throws an error if there is an issue during the audio stream setup.

await streamSuccessAudio({
stream: newAudioStream,
parameters: {
socket: socketInstance,
participants: participantList,
// other parameters...
},
});

Constructors

Methods

Constructors

Methods

  • Handles the successful streaming of audio by setting up the necessary transports and updating the relevant states.

    Parameters

    Returns Promise<void>

    A promise that resolves when the audio streaming setup is complete.