disconnectLocalSendTransportAudio

Disconnects the local send transport for audio by pausing the local audio producer and notifying the server.

Workflow:

  1. Pause Local Audio Producer:

    • If an active local audio producer exists, it is paused

    • Local state is updated to reflect the paused producer

  2. Notify Server:

    • Emits a pauseProducerMedia event to the server

    • Server is notified about the paused local audio producer

Return

Result indicating success or failure

Example usage:

val options = DisconnectSendTransportAudioOptions(
parameters = myParameters
)

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

Parameters

options

Configuration options for disconnecting local audio transport