From 9452854719964c9b5d0240ccd90fddbb458f6c16 Mon Sep 17 00:00:00 2001 From: Pei Wu Date: Mon, 27 Oct 2014 16:55:51 +0100 Subject: [PATCH] changed avaudiosessioncategory to ambient --- src/ios/nativeaudio.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/nativeaudio.m b/src/ios/nativeaudio.m index 6e5c18a9..825da13e 100644 --- a/src/ios/nativeaudio.m +++ b/src/ios/nativeaudio.m @@ -34,7 +34,7 @@ - (void)pluginInitialize NSError *setCategoryError = nil; // Allows the application to mix its audio with audio from other apps. - if (![session setCategory:AVAudioSessionCategoryPlayback + if (![session setCategory:AVAudioSessionCategoryAmbient withOptions:AVAudioSessionCategoryOptionMixWithOthers error:&setCategoryError]) {