Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changes/fix-speaker-toggle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patch type="fixed" "Preserve Bluetooth and AirPlay options when forcing speaker output on iOS"
1 change: 1 addition & 0 deletions lib/src/hardware/hardware.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ class Hardware {
if (_preferSpeakerOutput && _forceSpeakerOutput) {
config = config.copyWith(
appleAudioCategoryOptions: {
...?config.appleAudioCategoryOptions,
AppleAudioCategoryOption.defaultToSpeaker,
},
);
Expand Down
1 change: 1 addition & 0 deletions lib/src/track/audio_management.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Future<void> _onAudioTrackCountDidChange() async {
if (Hardware.instance.forceSpeakerOutput) {
config = config.copyWith(
appleAudioCategoryOptions: {
...?config.appleAudioCategoryOptions,
AppleAudioCategoryOption.defaultToSpeaker,
},
);
Expand Down