From c5f4f7c0cb9cd31fa92ff1d87db18f3576081167 Mon Sep 17 00:00:00 2001 From: Natalie Bridgers Date: Wed, 8 Oct 2025 11:16:42 -0500 Subject: [PATCH] take it out of the swift codemod for some reason --- .../src/config-react-native-webrtc.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/js/config-react-native-webrtc/src/config-react-native-webrtc.ts b/js/config-react-native-webrtc/src/config-react-native-webrtc.ts index 813e7db1..7f961f39 100644 --- a/js/config-react-native-webrtc/src/config-react-native-webrtc.ts +++ b/js/config-react-native-webrtc/src/config-react-native-webrtc.ts @@ -128,25 +128,23 @@ const iosDelegateReplacements = [ to: () => ` // WebRTC Configuration let config = RTCAudioSessionConfiguration.webRTC() - + let session = AVAudioSession.sharedInstance() do { - try session.setCategory(.playAndRecord, + try session.setCategory(.playAndRecord, options: [.defaultToSpeaker, .allowBluetooth]) try session.setActive(true) } catch { print("Failed to configure audio session: \(error)") } - + let device = AUAudioUnitRTCAudioDevice() let options = WebRTCModuleOptions.sharedInstance() options.loggingSeverity = .warning options.audioDevice = device - // Enable stereo audio - options.enableStereoOutput = true // End WebRTC Configuration - + let delegate = ReactNativeDelegate() `, }, -- 2.51.2