Skip to content

Commit

Permalink
Merge pull request #89594 from LeonardoDemartino/ios_airpods_routing
Browse files Browse the repository at this point in the history
iOS: Fix AirPods routing when Play and Record category is used.
  • Loading branch information
akien-mga committed Mar 24, 2024
2 parents 55d051e + 3bdbf90 commit a277361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/ios/app_delegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
} else if (sessionCategorySetting == SESSION_CATEGORY_PLAY_AND_RECORD) {
category = AVAudioSessionCategoryPlayAndRecord;
options |= AVAudioSessionCategoryOptionDefaultToSpeaker;
options |= AVAudioSessionCategoryOptionAllowBluetoothA2DP;
options |= AVAudioSessionCategoryOptionAllowAirPlay;
} else if (sessionCategorySetting == SESSION_CATEGORY_PLAYBACK) {
category = AVAudioSessionCategoryPlayback;
} else if (sessionCategorySetting == SESSION_CATEGORY_RECORD) {
Expand Down

0 comments on commit a277361

Please sign in to comment.