Class ResumePauseAudioStreams

Resumes or pauses audio streams based on the provided options.

This method checks the current state of participants in breakout rooms and updates the audio streams accordingly. It can add or remove audio streams based on the participant's current status (in a breakout room or not) and the event type (e.g., conference, webinar).

The options for resuming or pausing audio streams.

The ID of the break room. Defaults to -1 if not specified.

Indicates if the participant is in a break room. Defaults to false.

The parameters required for processing audio streams.

Array of breakout rooms.

Array of reference participants.

Array of all audio streams.

Array of participants.

The level of the participant.

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

Array of consumer transports.

Array of participants in the limited break room.

The ID of the host's new room.

The name of the member.

Function to update the limited break room.

Function to process audio transports.

A promise that resolves when the audio streams have been processed.

Will log an error message if there is an issue processing the audio streams.

await resumePauseAudioStreams({
breakRoom: 1,
inBreakRoom: true,
parameters: {
breakoutRooms: [],
ref_participants: [],
allAudioStreams: [],
participants: [],
islevel: '1',
eventType: 'conference',
consumerTransports: [],
limitedBreakRoom: [],
hostNewRoom: 2,
member: 'JohnDoe',
updateLimitedBreakRoom: myUpdateFunction,
processConsumerTransportsAudio: myProcessFunction,
},
});

Constructors

Methods

  • Resumes or pauses audio streams based on the provided options.

    Parameters

    Returns Promise<void>

    A promise that resolves when the audio streams have been processed.

    Will log an error message if there is an issue processing the audio streams.