resume Pause Streams
Resumes or pauses video streams based on active participants and display names.
This function manages the resumption of specific video streams (excluding audio) for participants in a virtual session. It identifies the relevant video IDs from active display names, screen sharing IDs, and the host's video ID, then resumes each associated transport.
Features:
Stream resumption based on active participants
Host video handling
Screen sharing stream management
Transport lifecycle management
Error handling
Parameters:
options Configuration options for resuming/pausing streams
Returns:
Example Usage:
val options = ResumePauseStreamsOptions(
parameters = myParameters,
socket = mySocket
)
val result = resumePauseStreams(options)
result.onSuccess {
}
result.onFailure { error ->
Logger.e("ResumePauseStreams", "Error resuming/pausing streams: ${error.message}")
}Content copied to clipboard