mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +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 {
|
||||
return []
|
||||
}
|
||||
#if DEBUG
|
||||
if id != 1 {
|
||||
return []
|
||||
}
|
||||
#endif
|
||||
var result: [OngoingCallConnectionDescriptionWebrtc] = []
|
||||
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)))
|
||||
@ -88,6 +93,11 @@ private func callConnectionDescriptionsWebrtc(_ connection: CallSessionConnectio
|
||||
}
|
||||
return result
|
||||
case let .webRtcReflector(reflector):
|
||||
#if DEBUG
|
||||
if "".isEmpty {
|
||||
return []
|
||||
}
|
||||
#endif
|
||||
var result: [OngoingCallConnectionDescriptionWebrtc] = []
|
||||
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))
|
||||
|
@ -115,7 +115,9 @@ public:
|
||||
if (!_audioDeviceModule->Playing()) {
|
||||
_audioDeviceModule->InitPlayout();
|
||||
//_audioDeviceModule->InitRecording();
|
||||
_audioDeviceModule->InternalStartPlayout();
|
||||
if (_audioDeviceModule->PlayoutIsInitialized()) {
|
||||
_audioDeviceModule->InternalStartPlayout();
|
||||
}
|
||||
//_audioDeviceModule->InternalStartRecording();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user