Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 53bd194058781fe4426e4b53d9172c36d1e6a300
      
https://github.com/WebKit/WebKit/commit/53bd194058781fe4426e4b53d9172c36d1e6a300
  Author: Youenn Fablet <[email protected]>
  Date:   2023-05-15 (Mon, 15 May 2023)

  Changed paths:
    M 
Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm

  Log Message:
  -----------
  [iOS 16.x] WebRTC call not switching when connect with EarPods with Lightning 
Connector
https://bugs.webkit.org/show_bug.cgi?id=254978
rdar://107871881

Reviewed by Eric Carlson.

We are using the default route to select the default microphone on iOS.
When headphones are plugged in, the route is the builtin route, but the subtype 
is different to differentiate
iPhone speakers from headset.

To take this into account on microphones, we keep the same logic to know the 
default route.
But we do a first iteration to check whether there is a head set microphone 
available.
If so, we consider this should be the default microphone if the default route 
is the builtin route.

Manually tested.

* Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm:
(SOFT_LINK_CONSTANT):
(WebCore::AVAudioSessionCaptureDeviceManager::retrieveAudioSessionCaptureDevices
 const):

Canonical link: https://commits.webkit.org/264070@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to