connect Send Transport Video
Connects the send transport for video by producing video data and updating the local video producer and transport.
This function sets up and connects the video stream for media sharing, handling updates to local video streams and producer transports.
Features:
Handles video track management
Manages media constraints
Sets up stream and track management
Handles transport production for video
Updates video producer state
Parameters:
options Configuration options for video transport connection
Returns:
Example Usage:
val videoOptions = ConnectSendTransportVideoOptions(
videoParams = myVideoParams,
targetOption = "all",
videoConstraints = myVideoConstraints,
parameters = myConnectSendTransportVideoParameters
)
val result = connectSendTransportVideo(videoOptions)
result.onSuccess {
}
result.onFailure { error ->
Logger.e("ConnectSendTransport", "Error setting up video stream: ${error.message}")
}Content copied to clipboard
Error Handling:
Returns Result.failure if required parameters are missing
Logs errors for debugging
Handles transport creation failures gracefully