mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
fix lost of son when audio route changed
This commit is contained in:
parent
cdfeebd241
commit
895d50adb4
1 changed files with 1 additions and 0 deletions
|
|
@ -1700,6 +1700,7 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) {
|
|||
if (newRoute && newRoute.outputs.count > 0) {
|
||||
NSString *route = newRoute.outputs[0].portType;
|
||||
LOGI(@"Current audio route is [%s]", [route UTF8String]);
|
||||
linphone_core_audio_route_changed(theLinphoneCore);
|
||||
|
||||
CallManager.instance.speakerEnabled = [route isEqualToString:AVAudioSessionPortBuiltInSpeaker];
|
||||
if (([[AudioHelper bluetoothRoutes] containsObject:route]) && !CallManager.instance.speakerEnabled) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue