disconnect Local Send Transport Video
suspend fun disconnectLocalSendTransportVideo(options: DisconnectSendTransportVideoOptions): Result<Unit>
Disconnects the local send transport for video by closing the local video producer and notifying the server.
Workflow:
Close Local Video Producer:
If an active local video producer exists, it is closed
Local state is updated to null after closing
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}")
}Content copied to clipboard
Parameters
options
Configuration options for disconnecting local video transport