Skip to content

Commit 6bec458

Browse files
Fix issue with CallKit audio not working (#885)
1 parent 13ff7ff commit 6bec458

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ custom_rules:
2626
# Enabled/disabled rules
2727
only_rules:
2828
- unhandled_throwing_task
29-
- custom_rules
29+
# - custom_rules

Sources/StreamVideo/WebRTC/v2/WebRTCStateAdapter.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ actor WebRTCStateAdapter: ObservableObject, StreamAudioSessionAdapterDelegate {
118118
self.rtcPeerConnectionCoordinatorFactory = rtcPeerConnectionCoordinatorFactory
119119
self.videoCaptureSessionProvider = videoCaptureSessionProvider
120120
self.screenShareSessionProvider = screenShareSessionProvider
121+
122+
Task {
123+
await configureAudioSession()
124+
}
121125
}
122126

123127
deinit {
@@ -293,8 +297,6 @@ actor WebRTCStateAdapter: ObservableObject, StreamAudioSessionAdapterDelegate {
293297
})
294298
.store(in: peerConnectionsDisposableBag)
295299

296-
configureAudioSession()
297-
298300
/// We setUp and restoreScreenSharing on the publisher in order to prepare all required tracks
299301
/// for publication. In that way, negotiation will wait until ``completeSetUp`` has been called.
300302
/// Then, with all the tracks prepared, will continue the negotiation flow.

0 commit comments

Comments
 (0)