Merge pull request #5175 from igrechuhin/MAPSME-3493

[MAPSME-3493] [ios] Fixed audio session mode.
This commit is contained in:
Vladimir Byko-Ianko 2017-01-13 10:15:58 +03:00 committed by GitHub
commit c3b92cec04

View file

@ -100,7 +100,8 @@ vector<pair<string, string>> availableLanguages()
NSError * err = nil;
_audioSession = [AVAudioSession sharedInstance];
if (![_audioSession setCategory:AVAudioSessionCategoryPlayback
withOptions:AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers
withOptions:AVAudioSessionCategoryOptionMixWithOthers |
AVAudioSessionCategoryOptionDuckOthers
error:&err])
{
LOG(LWARNING, ("[ setCategory]] error.", [err localizedDescription]));