Skip to content

Commit

Permalink
Fix the sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
vadymmarkov committed Dec 21, 2023
1 parent 67ef6f0 commit 3afc197
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ final class ConferenceViewModel: ObservableObject {

#if os(iOS)
Task { [weak audioSession] in
await audioSession?.activate(for: .call)
await audioSession?.activate(for: .videoCall())
}
#endif
}
Expand Down
4 changes: 3 additions & 1 deletion Sources/PexipRTC/Internal/WebRTCMediaConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ actor WebRTCMediaConnection: MediaConnection, DataSender {
outgoingIceCandidates.removeAll()

#if os(iOS)
await audioSession?.deactivate()
if !config.externalAudioManagement {
await audioSession?.deactivate()
}
#endif
}

Expand Down

0 comments on commit 3afc197

Please sign in to comment.