From 2794a0a79eab5ac62190a56b30669c00a49a8a4f Mon Sep 17 00:00:00 2001 From: Ofer Fryman Date: Tue, 3 Dec 2024 17:19:48 +0200 Subject: [PATCH] Fix(AudioRecorder.swift): Fix locking the mic on IOS --- ios/AudioRecorder.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/AudioRecorder.swift b/ios/AudioRecorder.swift index 1a18936..d571ca0 100644 --- a/ios/AudioRecorder.swift +++ b/ios/AudioRecorder.swift @@ -45,8 +45,8 @@ public class AudioRecorder: NSObject, AVAudioRecorderDelegate{ AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue ] - let options: AVAudioSession.CategoryOptions = [.defaultToSpeaker, .allowBluetooth] - + let options: AVAudioSession.CategoryOptions = [.defaultToSpeaker, .allowBluetooth, .mixWithOthers] + if (path == nil) { guard let newPath = self.createAudioRecordPath(fileNameFormat: fileNameFormat) else { reject(Constants.audioWaveforms, "Failed to initialise file URL", nil)