Skip to content

Commit caa474d

Browse files
authored
Update libwebrtc to 137.7151.01 (#727)
* Update libwebrtc to 137.7151.01 * update RTCConfiguration.copyFrom
1 parent f10fe64 commit caa474d

File tree

3 files changed

+40
-31
lines changed

3 files changed

+40
-31
lines changed

.changeset/twenty-weeks-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"client-sdk-android": minor
3+
---
4+
5+
Update libwebrtc to 137.7151.01

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
webrtc = "125.6422.07"
2+
webrtc = "137.7151.01"
33

44
androidJainSipRi = "1.3.0-91"
55
androidx-activity = "1.9.0"

livekit-android-sdk/src/main/java/io/livekit/android/webrtc/PeerConnectionExt.kt

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 LiveKit, Inc.
2+
* Copyright 2023-2025 LiveKit, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,9 @@ internal fun PeerConnection.PeerConnectionState.isDisconnected(): Boolean {
3838
* as that is a temporary state and may return to connected state by itself.
3939
*/
4040
PeerConnection.PeerConnectionState.FAILED,
41-
PeerConnection.PeerConnectionState.CLOSED -> true
41+
PeerConnection.PeerConnectionState.CLOSED,
42+
-> true
43+
4244
else -> false
4345
}
4446
}
@@ -50,45 +52,47 @@ fun RTCConfiguration.copy(): RTCConfiguration {
5052
}
5153

5254
fun RTCConfiguration.copyFrom(config: RTCConfiguration) {
53-
iceTransportsType = config.iceTransportsType
54-
iceServers = config.iceServers
55+
activeResetSrtpParams = config.activeResetSrtpParams
56+
audioJitterBufferFastAccelerate = config.audioJitterBufferFastAccelerate
57+
audioJitterBufferMaxPackets = config.audioJitterBufferMaxPackets
5558
bundlePolicy = config.bundlePolicy
56-
certificate = config.certificate
57-
rtcpMuxPolicy = config.rtcpMuxPolicy
58-
tcpCandidatePolicy = config.tcpCandidatePolicy
5959
candidateNetworkPolicy = config.candidateNetworkPolicy
60-
audioJitterBufferMaxPackets = config.audioJitterBufferMaxPackets
61-
audioJitterBufferFastAccelerate = config.audioJitterBufferFastAccelerate
62-
iceConnectionReceivingTimeout = config.iceConnectionReceivingTimeout
63-
iceBackupCandidatePairPingInterval = config.iceBackupCandidatePairPingInterval
64-
keyType = config.keyType
60+
certificate = config.certificate
6561
continualGatheringPolicy = config.continualGatheringPolicy
62+
cryptoOptions = config.cryptoOptions
63+
disableIPv6OnWifi = config.disableIPv6OnWifi
64+
enableCpuOveruseDetection = config.enableCpuOveruseDetection
65+
enableDscp = config.enableDscp
66+
enableIceGatheringOnAnyAddressPorts = config.enableIceGatheringOnAnyAddressPorts
67+
enableImplicitRollback = config.enableImplicitRollback
68+
iceBackupCandidatePairPingInterval = config.iceBackupCandidatePairPingInterval
6669
iceCandidatePoolSize = config.iceCandidatePoolSize
67-
68-
pruneTurnPorts = config.pruneTurnPorts
69-
turnPortPrunePolicy = config.turnPortPrunePolicy
70-
presumeWritableWhenFullyRelayed = config.presumeWritableWhenFullyRelayed
71-
surfaceIceCandidatesOnIceTransportTypeChanged = config.surfaceIceCandidatesOnIceTransportTypeChanged
7270
iceCheckIntervalStrongConnectivityMs = config.iceCheckIntervalStrongConnectivityMs
7371
iceCheckIntervalWeakConnectivityMs = config.iceCheckIntervalWeakConnectivityMs
7472
iceCheckMinInterval = config.iceCheckMinInterval
75-
iceUnwritableTimeMs = config.iceUnwritableTimeMs
73+
iceConnectionReceivingTimeout = config.iceConnectionReceivingTimeout
74+
iceServers = config.iceServers
75+
iceTransportsType = config.iceTransportsType
7676
iceUnwritableMinChecks = config.iceUnwritableMinChecks
77-
stunCandidateKeepaliveIntervalMs = config.stunCandidateKeepaliveIntervalMs
78-
stableWritableConnectionPingIntervalMs = config.stableWritableConnectionPingIntervalMs
79-
disableIPv6OnWifi = config.disableIPv6OnWifi
77+
iceUnwritableTimeMs = config.iceUnwritableTimeMs
78+
keyType = config.keyType
8079
maxIPv6Networks = config.maxIPv6Networks
81-
enableDscp = config.enableDscp
82-
enableCpuOveruseDetection = config.enableCpuOveruseDetection
83-
suspendBelowMinBitrate = config.suspendBelowMinBitrate
84-
screencastMinBitrate = config.screencastMinBitrate
8580
networkPreference = config.networkPreference
81+
offerExtmapAllowMixed = config.offerExtmapAllowMixed
82+
portAllocatorFlags = config.portAllocatorFlags
83+
portAllocatorMaxPort = config.portAllocatorMaxPort
84+
portAllocatorMinPort = config.portAllocatorMinPort
85+
presumeWritableWhenFullyRelayed = config.presumeWritableWhenFullyRelayed
86+
pruneTurnPorts = config.pruneTurnPorts
87+
rtcpMuxPolicy = config.rtcpMuxPolicy
88+
screencastMinBitrate = config.screencastMinBitrate
8689
sdpSemantics = config.sdpSemantics
90+
stableWritableConnectionPingIntervalMs = config.stableWritableConnectionPingIntervalMs
91+
stunCandidateKeepaliveIntervalMs = config.stunCandidateKeepaliveIntervalMs
92+
surfaceIceCandidatesOnIceTransportTypeChanged = config.surfaceIceCandidatesOnIceTransportTypeChanged
93+
suspendBelowMinBitrate = config.suspendBelowMinBitrate
94+
tcpCandidatePolicy = config.tcpCandidatePolicy
8795
turnCustomizer = config.turnCustomizer
88-
activeResetSrtpParams = config.activeResetSrtpParams
89-
cryptoOptions = config.cryptoOptions
9096
turnLoggingId = config.turnLoggingId
91-
enableImplicitRollback = config.enableImplicitRollback
92-
offerExtmapAllowMixed = config.offerExtmapAllowMixed
93-
enableIceGatheringOnAnyAddressPorts = config.enableIceGatheringOnAnyAddressPorts
97+
turnPortPrunePolicy = config.turnPortPrunePolicy
9498
}

0 commit comments

Comments
 (0)