disconnect Local Send Transport Audio
suspend fun disconnectLocalSendTransportAudio(options: DisconnectSendTransportAudioOptions): Result<Unit>
Disconnects the local send transport for audio by pausing the local audio producer and notifying the server.
Workflow:
Pause Local Audio Producer:
If an active local audio producer exists, it is paused
Local state is updated to reflect the paused producer
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}")
}Content copied to clipboard
Parameters
options
Configuration options for disconnecting local audio transport