mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Use voice chat mode
This commit is contained in:
parent
f03c3b6cad
commit
af1df73429
@ -247,9 +247,9 @@ class CallKitProviderDelegate: NSObject, CXProviderDelegate {
|
|||||||
update.hasVideo = isVideo
|
update.hasVideo = isVideo
|
||||||
|
|
||||||
do {
|
do {
|
||||||
try AVAudioSession.sharedInstance().setMode(.default)
|
try AVAudioSession.sharedInstance().setMode(.voiceChat)
|
||||||
} catch let e {
|
} 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
|
self.provider.reportNewIncomingCall(with: uuid, update: update, completion: { error in
|
||||||
|
@ -878,7 +878,7 @@ static void (*InternalVoipLoggingFunction)(NSString *) = NULL;
|
|||||||
#ifdef WEBRTC_IOS
|
#ifdef WEBRTC_IOS
|
||||||
RTCAudioSessionConfiguration *sharedConfiguration = [RTCAudioSessionConfiguration webRTCConfiguration];
|
RTCAudioSessionConfiguration *sharedConfiguration = [RTCAudioSessionConfiguration webRTCConfiguration];
|
||||||
if (useManualAudioSessionControl) {
|
if (useManualAudioSessionControl) {
|
||||||
sharedConfiguration.mode = AVAudioSessionModeDefault;
|
sharedConfiguration.mode = AVAudioSessionModeVoiceChat;
|
||||||
} else {
|
} else {
|
||||||
sharedConfiguration.mode = AVAudioSessionModeVoiceChat;
|
sharedConfiguration.mode = AVAudioSessionModeVoiceChat;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user