Skip to content

Commit

Permalink
force overrideOutputAudioPort
Browse files Browse the repository at this point in the history
  • Loading branch information
pax-k committed Apr 19, 2024
1 parent 6771d4e commit a2014e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/ExpoAudioStreamModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ExpoAudioStreamModule: Module {
private func configureAudioSession() {
do {
let audioSession = AVAudioSession.sharedInstance()
try audioSession.setCategory(.playAndRecord, mode: .voicePrompt, options: [.duckOthers ,.defaultToSpeaker, .allowBluetooth, .allowBluetoothA2DP, .allowAirPlay])
try audioSession.setCategory(.playback, mode: .default, options: .defaultToSpeaker)
try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
try audioSession.overrideOutputAudioPort(.speaker)
} catch {
Expand Down

0 comments on commit a2014e8

Please sign in to comment.