Resumes or pauses streams based on the provided parameters.
This method processes the current participant states and the active display names to determine
which audio and video streams should be resumed or paused. It communicates with the server
to resume streams as necessary.
Param: options
The options for resuming or pausing streams.
Param: options.parameters
The parameters for the function.
Param: options.parameters.participants
The list of participants in the session.
Param: options.parameters.dispActiveNames
The list of active display names.
Param: options.parameters.consumerTransports
The list of consumer transports.
Param: options.parameters.screenId
The screen producer ID if applicable.
Param: options.parameters.islevel
The level of the user (e.g., participant or host).
Returns
A promise that resolves when the streams have been resumed or paused.
Throws
Will throw an error if there is an issue during the process of resuming or pausing streams.
Example
awaitresumePauseStreams({ parameters: { participants: [...], // Array of participants dispActiveNames: ['Alice', 'Bob'], // Active display names consumerTransports: [...], // Array of consumer transports screenId:'screen123', // Screen producer ID islevel:'1', // User level getUpdatedAllParams:myGetUpdatedFunction, // Function to get updated params }, });
Resumes or pauses streams based on the provided parameters.
This method processes the current participant states and the active display names to determine which audio and video streams should be resumed or paused. It communicates with the server to resume streams as necessary.
Param: options
The options for resuming or pausing streams.
Param: options.parameters
The parameters for the function.
Param: options.parameters.participants
The list of participants in the session.
Param: options.parameters.dispActiveNames
The list of active display names.
Param: options.parameters.consumerTransports
The list of consumer transports.
Param: options.parameters.screenId
The screen producer ID if applicable.
Param: options.parameters.islevel
The level of the user (e.g., participant or host).
Returns
A promise that resolves when the streams have been resumed or paused.
Throws
Will throw an error if there is an issue during the process of resuming or pausing streams.
Example