Skip to content

Commit

Permalink
Activating audioSession while ignoring errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ipavlidakis committed Jan 31, 2025
1 parent 61824bb commit b392998
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ final class StreamAudioSessionAdapter: NSObject, RTCAudioSessionDelegate, @unche
if audioSession.category == AVAudioSession.Category.playAndRecord.rawValue, requiredCategory == .playback {
try audioSession.audioSource.overrideInputAudioPort(.builtInMic)
}
try audioSession.setActive(true)
try? audioSession.setActive(true)
} else {
if requiredMode != audioSession.audioSource.mode, requiredCategory.supports(mode: requiredMode) {
try audioSession.setMode(requiredMode.rawValue)
Expand Down

0 comments on commit b392998

Please sign in to comment.