disconnectLocalSendTransportVideo

Disconnects the local send transport for video by closing the local video producer and notifying the server.

Workflow:

  1. Close Local Video Producer:

    • If an active local video producer exists, it is closed

    • Local state is updated to null after closing

  2. Notify Server:

    • Emits a pauseProducerMedia event to the server

    • Server is notified about the closed local video producer

Return

Result indicating success or failure

Example usage:

val options = DisconnectSendTransportVideoOptions(
parameters = myParameters
)

disconnectLocalSendTransportVideo(options).onSuccess {
Logger.e("DisconnectSendTransp", "Local video disconnected")
}.onFailure { error ->
Logger.e("DisconnectSendTransp", "Failed: ${error.message}")
}

Parameters

options

Configuration options for disconnecting local video transport