disconnect Local Send Transport Screen
suspend fun disconnectLocalSendTransportScreen(options: DisconnectSendTransportScreenOptions): Result<Unit>
Disconnects the local send transport for screen sharing by closing the local screen producer and notifying the server.
Workflow:
Close Local Screen Producer:
If an active local screen producer exists, it is closed
Local state is updated to reflect the closed producer
Notify Server:
Emits closeScreenProducer event to the server
Emits pauseProducerMedia event to notify about paused screen sharing
Return
Result indicating success or failure
Example usage:
val options = DisconnectSendTransportScreenOptions(
parameters = myParameters
)
disconnectLocalSendTransportScreen(options).onSuccess {
Logger.e("DisconnectSendTransp", "Local screen disconnected")
}.onFailure { error ->
Logger.e("DisconnectSendTransp", "Failed: ${error.message}")
}Content copied to clipboard
Parameters
options
Configuration options for disconnecting local screen transport