mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 01:10:09 +00:00
[Temp] call-related changes
This commit is contained in:
parent
da5fa05042
commit
ab4671c631
@ -79,6 +79,11 @@ private func callConnectionDescriptionsWebrtc(_ connection: CallSessionConnectio
|
|||||||
guard let id = idMapping[reflector.id] else {
|
guard let id = idMapping[reflector.id] else {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
#if DEBUG
|
||||||
|
if id != 1 {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
#endif
|
||||||
var result: [OngoingCallConnectionDescriptionWebrtc] = []
|
var result: [OngoingCallConnectionDescriptionWebrtc] = []
|
||||||
if !reflector.ip.isEmpty {
|
if !reflector.ip.isEmpty {
|
||||||
result.append(OngoingCallConnectionDescriptionWebrtc(reflectorId: id, hasStun: false, hasTurn: true, hasTcp: reflector.isTcp, ip: reflector.ip, port: reflector.port, username: "reflector", password: hexString(reflector.peerTag)))
|
result.append(OngoingCallConnectionDescriptionWebrtc(reflectorId: id, hasStun: false, hasTurn: true, hasTcp: reflector.isTcp, ip: reflector.ip, port: reflector.port, username: "reflector", password: hexString(reflector.peerTag)))
|
||||||
@ -88,6 +93,11 @@ private func callConnectionDescriptionsWebrtc(_ connection: CallSessionConnectio
|
|||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
case let .webRtcReflector(reflector):
|
case let .webRtcReflector(reflector):
|
||||||
|
#if DEBUG
|
||||||
|
if "".isEmpty {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
#endif
|
||||||
var result: [OngoingCallConnectionDescriptionWebrtc] = []
|
var result: [OngoingCallConnectionDescriptionWebrtc] = []
|
||||||
if !reflector.ip.isEmpty {
|
if !reflector.ip.isEmpty {
|
||||||
result.append(OngoingCallConnectionDescriptionWebrtc(reflectorId: 0, hasStun: reflector.hasStun, hasTurn: reflector.hasTurn, hasTcp: false, ip: reflector.ip, port: reflector.port, username: reflector.username, password: reflector.password))
|
result.append(OngoingCallConnectionDescriptionWebrtc(reflectorId: 0, hasStun: reflector.hasStun, hasTurn: reflector.hasTurn, hasTcp: false, ip: reflector.ip, port: reflector.port, username: reflector.username, password: reflector.password))
|
||||||
|
|||||||
@ -115,7 +115,9 @@ public:
|
|||||||
if (!_audioDeviceModule->Playing()) {
|
if (!_audioDeviceModule->Playing()) {
|
||||||
_audioDeviceModule->InitPlayout();
|
_audioDeviceModule->InitPlayout();
|
||||||
//_audioDeviceModule->InitRecording();
|
//_audioDeviceModule->InitRecording();
|
||||||
_audioDeviceModule->InternalStartPlayout();
|
if (_audioDeviceModule->PlayoutIsInitialized()) {
|
||||||
|
_audioDeviceModule->InternalStartPlayout();
|
||||||
|
}
|
||||||
//_audioDeviceModule->InternalStartRecording();
|
//_audioDeviceModule->InternalStartRecording();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user