Skip to content

Commit 2794a0a

Browse files
author
Ofer Fryman
committed
Fix(AudioRecorder.swift): Fix locking the mic on IOS
1 parent 3052c87 commit 2794a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/AudioRecorder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public class AudioRecorder: NSObject, AVAudioRecorderDelegate{
4545
AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue
4646
]
4747

48-
let options: AVAudioSession.CategoryOptions = [.defaultToSpeaker, .allowBluetooth]
49-
48+
let options: AVAudioSession.CategoryOptions = [.defaultToSpeaker, .allowBluetooth, .mixWithOthers]
49+
5050
if (path == nil) {
5151
guard let newPath = self.createAudioRecordPath(fileNameFormat: fileNameFormat) else {
5252
reject(Constants.audioWaveforms, "Failed to initialise file URL", nil)

0 commit comments

Comments
 (0)