mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Update tgcalls
This commit is contained in:
parent
2a5e668a1f
commit
7b360452ba
3 changed files with 21 additions and 20 deletions
|
|
@ -784,7 +784,7 @@ public final class OngoingCallContext {
|
|||
var allowP2P = allowP2P
|
||||
if debugUseLegacyVersionForReflectors {
|
||||
useModernImplementation = true
|
||||
version = "4.0.3"
|
||||
version = "4.1.2"
|
||||
allowP2P = false
|
||||
} else {
|
||||
useModernImplementation = version != OngoingCallThreadLocalContext.version()
|
||||
|
|
@ -830,27 +830,25 @@ public final class OngoingCallContext {
|
|||
filteredConnections.append(contentsOf: callConnectionDescriptionsWebrtc(connection, idMapping: reflectorIdMapping))
|
||||
}
|
||||
|
||||
if debugUseLegacyVersionForReflectors {
|
||||
for connection in filteredConnections {
|
||||
if connection.username == "reflector" {
|
||||
let peerTag = dataWithHexString(connection.password)
|
||||
if #available(iOS 12.0, *) {
|
||||
strongSelf.signalingConnectionManager = QueueLocalObject(queue: queue, generate: {
|
||||
return CallSignalingConnectionManager(queue: queue, peerTag: peerTag, servers: [OngoingCallConnectionDescriptionWebrtc(reflectorId: 0, hasStun: false, hasTurn: true, hasTcp: true, ip: "91.108.12.1", port: 533, username: "reflector", password: connection.password)], dataReceived: { data in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
for connection in filteredConnections {
|
||||
if connection.username == "reflector" {
|
||||
let peerTag = dataWithHexString(connection.password)
|
||||
if #available(iOS 12.0, *) {
|
||||
strongSelf.signalingConnectionManager = QueueLocalObject(queue: queue, generate: {
|
||||
return CallSignalingConnectionManager(queue: queue, peerTag: peerTag, servers: [OngoingCallConnectionDescriptionWebrtc(reflectorId: 0, hasStun: false, hasTurn: true, hasTcp: true, ip: "91.108.12.1", port: 533, username: "reflector", password: connection.password)], dataReceived: { data in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
strongSelf.withContext { context in
|
||||
if let context = context as? OngoingCallThreadLocalContextWebrtc {
|
||||
context.addSignaling(data)
|
||||
}
|
||||
strongSelf.withContext { context in
|
||||
if let context = context as? OngoingCallThreadLocalContextWebrtc {
|
||||
context.addSignaling(data)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
break
|
||||
})
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -96,6 +96,9 @@ objc_library(
|
|||
"GLKit",
|
||||
"AVFoundation",
|
||||
],
|
||||
sdk_dylibs = [
|
||||
"libz",
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 0ecfbd22fdc764d341a50236e6c1546884bafa3c
|
||||
Subproject commit f3c148739bf0ad37a0882a7fcafcbc56969c4f8a
|
||||
Loading…
Add table
Add a link
Reference in a new issue