summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--platform/ios/app_delegate.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/app_delegate.mm b/platform/ios/app_delegate.mm
index 5a0c57be93..37d2696434 100644
--- a/platform/ios/app_delegate.mm
+++ b/platform/ios/app_delegate.mm
@@ -116,6 +116,8 @@ static ViewController *mainViewController = nil;
} 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) {