Processes consumer transports by pausing and resuming them based on certain conditions.
The options for processing consumer transports.
The function performs the following steps:
consumer-pause
event for each filtered transport (not audio).consumer-resume
event for each filtered transport (not audio).
Processes consumer transports by pausing and resuming them based on certain conditions.
This method checks the state of each consumer transport and determines whether to pause or resume based on the validity of the producer ID in relation to the provided streams. It utilizes a sleep function to introduce a delay before pausing the transports.
Param: options
The options for processing consumer transports.
Param: options.consumerTransports
The list of consumer transports to process.
Param: options.lStreams_
The list of local streams.
Param: options.parameters
The parameters for processing, including:
Returns
A promise that resolves when the processing is complete.
Throws
Will throw an error if there is an issue processing consumer transports.
Example