tangled
alpha
login
or
join now
stream.place
/
streamplace
77
fork
atom
Live video on the AT Protocol
77
fork
atom
overview
issues
1
pulls
pipelines
take it out of the swift codemod for some reason
Natalie Bridgers
5 months ago
c5f4f7c0
4e762945
+4
-6
1 changed file
expand all
collapse all
unified
split
js
config-react-native-webrtc
src
config-react-native-webrtc.ts
+4
-6
js/config-react-native-webrtc/src/config-react-native-webrtc.ts
···
128
128
to: () => `
129
129
// WebRTC Configuration
130
130
let config = RTCAudioSessionConfiguration.webRTC()
131
131
-
131
131
+
132
132
let session = AVAudioSession.sharedInstance()
133
133
do {
134
134
-
try session.setCategory(.playAndRecord,
134
134
+
try session.setCategory(.playAndRecord,
135
135
options: [.defaultToSpeaker, .allowBluetooth])
136
136
try session.setActive(true)
137
137
} catch {
138
138
print("Failed to configure audio session: \(error)")
139
139
}
140
140
-
140
140
+
141
141
let device = AUAudioUnitRTCAudioDevice()
142
142
143
143
let options = WebRTCModuleOptions.sharedInstance()
144
144
options.loggingSeverity = .warning
145
145
options.audioDevice = device
146
146
-
// Enable stereo audio
147
147
-
options.enableStereoOutput = true
148
146
// End WebRTC Configuration
149
149
-
147
147
+
150
148
let delegate = ReactNativeDelegate()
151
149
`,
152
150
},