mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Use voice chat mode
This commit is contained in:
parent
f03c3b6cad
commit
af1df73429
2 changed files with 3 additions and 3 deletions
|
|
@ -247,9 +247,9 @@ class CallKitProviderDelegate: NSObject, CXProviderDelegate {
|
|||
update.hasVideo = isVideo
|
||||
|
||||
do {
|
||||
try AVAudioSession.sharedInstance().setMode(.default)
|
||||
try AVAudioSession.sharedInstance().setMode(.voiceChat)
|
||||
} catch let e {
|
||||
print("AVAudioSession.sharedInstance().setMode(.default) error \(e)")
|
||||
print("AVAudioSession.sharedInstance().setMode(.voiceChat) error \(e)")
|
||||
}
|
||||
|
||||
self.provider.reportNewIncomingCall(with: uuid, update: update, completion: { error in
|
||||
|
|
|
|||
|
|
@ -878,7 +878,7 @@ static void (*InternalVoipLoggingFunction)(NSString *) = NULL;
|
|||
#ifdef WEBRTC_IOS
|
||||
RTCAudioSessionConfiguration *sharedConfiguration = [RTCAudioSessionConfiguration webRTCConfiguration];
|
||||
if (useManualAudioSessionControl) {
|
||||
sharedConfiguration.mode = AVAudioSessionModeDefault;
|
||||
sharedConfiguration.mode = AVAudioSessionModeVoiceChat;
|
||||
} else {
|
||||
sharedConfiguration.mode = AVAudioSessionModeVoiceChat;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue