Remove AVAudioSession configuration from CallView

This commit is contained in:
Benoit Martins 2026-02-27 11:04:08 +01:00
parent cdde88e32a
commit 9364e7f196
3 changed files with 5 additions and 1 deletions

View file

@ -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"
}

View file

@ -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()
}

View file

@ -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,