File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -493,6 +493,15 @@ - (void)updateAudioRoute
493493 NSLog (@" RNInCallManager.updateAudioRoute(): did NOT overrideOutputAudioPort()" );
494494 }
495495
496+ if (![_audioSession.category isEqualToString: _incallAudioCategory]) {
497+ [self audioSessionSetCategory: _incallAudioCategory
498+ options: 0
499+ callerMemo: NSStringFromSelector (_cmd )];
500+ NSLog (@" RNInCallManager.updateAudioRoute() audio category has changed to %@ " , _incallAudioCategory);
501+ } else {
502+ NSLog (@" RNInCallManager.updateAudioRoute() did NOT change audio category" );
503+ }
504+
496505 if (audioMode.length > 0 && ![_audioSession.mode isEqualToString: audioMode]) {
497506 [self audioSessionSetMode: audioMode
498507 callerMemo: NSStringFromSelector (_cmd )];
You can’t perform that action at this time.
0 commit comments