Skip to content

Commit 4ea5907

Browse files
authored
fix(iOS): Default to speaker instead of earpiece on iOS (#1408)
1 parent 47d0851 commit 4ea5907

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/audioplayers_darwin/ios/Classes/AudioContext.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ struct AudioContext {
66

77
init() {
88
self.category = .playAndRecord
9-
self.options = [.mixWithOthers]
9+
self.options = [.mixWithOthers, .defaultToSpeaker]
1010
}
11-
11+
1212
init(
1313
category: AVAudioSession.Category,
1414
options: [AVAudioSession.CategoryOptions]

0 commit comments

Comments
 (0)