[webkit-changes] [WebKit/WebKit] 53bd19: [iOS 16.x] WebRTC call not switching when connect ...

youennf noreply at github.com
Mon May 15 07:22:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 53bd194058781fe4426e4b53d9172c36d1e6a300
      https://github.com/WebKit/WebKit/commit/53bd194058781fe4426e4b53d9172c36d1e6a300
  Author: Youenn Fablet <youennf at gmail.com>
  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




More information about the webkit-changes mailing list