Processes consumer transports for audio streams by pausing and resuming them based on their current state and the provided streams.
Will throw an error if there is an issue processing the consumer transports.
await processConsumerTransportsAudio({ consumerTransports: [transport1, transport2], lStreams: [stream1, stream2], parameters: { sleep: sleepFunction, },}); Copy
await processConsumerTransportsAudio({ consumerTransports: [transport1, transport2], lStreams: [stream1, stream2], parameters: { sleep: sleepFunction, },});
The options for processing consumer transports.
A promise that resolves when the processing is complete.
Processes consumer transports for audio streams by pausing and resuming them based on their current state and the provided streams.
Throws
Will throw an error if there is an issue processing the consumer transports.
Example