connectSendTransport

Connects send transport for audio, video, or screen based on the specified option.

This function manages media stream connections, allowing flexible configuration for different types of media transmission (audio, video, screen) based on the option provided.

Workflow:

  1. Audio Transport: If option is 'audio', connects the audio stream

  2. Video Transport: If option is 'video', connects the video stream

  3. Screen Transport: If option is 'screen', decides which stream to connect based on whiteboard and screen sharing state

  4. All Transports: If option is 'all', initiates connections for both audio and video

Parameters

options

The options containing connection type and parameters

Example:

val options = ConnectSendTransportOptions(
option = "all",
targetOption = "all",
parameters = myConnectSendTransportParameters
)

connectSendTransport(options)