mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-18 04:38:27 +00:00
Remove AVAudioSession configuration from CallView
This commit is contained in:
parent
cdde88e32a
commit
9364e7f196
3 changed files with 5 additions and 1 deletions
|
|
@ -2,6 +2,6 @@ import Foundation
|
|||
|
||||
public enum AppGitInfo {
|
||||
public static let branch = "master"
|
||||
public static let commit = "e066ff4ee"
|
||||
public static let commit = "cdde88e32"
|
||||
public static let tag = "6.1.0-alpha"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,11 +94,14 @@ class CallViewModel: ObservableObject {
|
|||
private var chatRoomDelegate: ChatRoomDelegate?
|
||||
|
||||
init() {
|
||||
// Not needed since call audio configuration (AVAudioSession) is handled by the SDK
|
||||
/*
|
||||
do {
|
||||
try configureAudio(.call)
|
||||
} catch {
|
||||
print("Audio session error: \(error)")
|
||||
}
|
||||
*/
|
||||
NotificationCenter.default.addObserver(forName: Notification.Name("CallViewModelReset"), object: nil, queue: nil) { notification in
|
||||
self.resetCallView()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ func configureAudio(_ mode: AudioMode) throws {
|
|||
options: [.allowBluetoothHFP, .defaultToSpeaker, .mixWithOthers]
|
||||
)
|
||||
|
||||
// Not needed since call audio configuration (AVAudioSession) is handled by the SDK
|
||||
case .call:
|
||||
try session.setCategory(
|
||||
.playAndRecord,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue