From a2014e894feb0a52ae973a9311c30fb140c2cd17 Mon Sep 17 00:00:00 2001 From: pax-k Date: Fri, 19 Apr 2024 12:38:59 +0300 Subject: [PATCH] force overrideOutputAudioPort --- ios/ExpoAudioStreamModule.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/ExpoAudioStreamModule.swift b/ios/ExpoAudioStreamModule.swift index 1340a51..413b1ce 100644 --- a/ios/ExpoAudioStreamModule.swift +++ b/ios/ExpoAudioStreamModule.swift @@ -29,7 +29,7 @@ public class ExpoAudioStreamModule: Module { private func configureAudioSession() { do { let audioSession = AVAudioSession.sharedInstance() - try audioSession.setCategory(.playAndRecord, mode: .voicePrompt, options: [.duckOthers ,.defaultToSpeaker, .allowBluetooth, .allowBluetoothA2DP, .allowAirPlay]) + try audioSession.setCategory(.playback, mode: .default, options: .defaultToSpeaker) try audioSession.setActive(true, options: .notifyOthersOnDeactivation) try audioSession.overrideOutputAudioPort(.speaker) } catch {