We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6844c5d commit 213f75fCopy full SHA for 213f75f
Sources/StreamVideo/Utils/AudioSession/CallAudioSession.swift
@@ -292,6 +292,10 @@ final class CallAudioSession: @unchecked Sendable {
292
)
293
294
actions.append(contentsOf: [
295
+ // Setting only the audioEnabled doesn't stop the audio playout
296
+ // as if a new track gets added later on WebRTC will try to restart
297
+ // the playout. However, the combination of audioEnabled:false
298
+ // and AVAudioSession.active:false seems to work.
299
.normal(.webRTCAudioSession(.setAudioEnabled(configuration.isActive))),
300
.normal(.setActive(configuration.isActive)),
301
.normal(.avAudioSession(.setOverrideOutputAudioPort(configuration.overrideOutputAudioPort ?? .none)))
0 commit comments