Open Pandazaur opened 2 years ago
hey @Pandazaur i have the same problem now as you, did you find a solution for this?
@wilmxre If I remember well, I added this custom code in my AppDelegate.m
#import <WebRTC/RTCAudioSessionConfiguration.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// ....
RTCAudioSessionConfiguration *webRTCConfiguration = [RTCAudioSessionConfiguration webRTCConfiguration];
webRTCConfiguration.categoryOptions = (
AVAudioSessionCategoryOptionAllowBluetooth |
AVAudioSessionCategoryOptionDefaultToSpeaker
);
return YES;
}
Hello,
I encounter a problem when I'm testing my app. When I'm starting a audio + video conversation with the Airpods, the sound is correctly broadcast in my ears but if I disconnect my airpods, the audio is redirected to the "small speaker" (the speaker used when you're in a phone call) instead of the "loud speaker" (the big one usually used in video calls)
First test (Working):
Failing test:
My code which manage InCallManager:
The audio is not redirected correctly. I don't think my code changes anything to the audio redirection behavior. Is there a fix, workaround or any information about this case ?
Thank you