[webkit-changes] [WebKit/WebKit] 460662: [Cocoa] Use AVCaptureDeviceDiscoverySession for ca...
Eric Carlson
noreply at github.com
Fri Nov 18 12:52:30 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 460662e8590c4a2e99a90a8a97b56ed9cb92016f
https://github.com/WebKit/WebKit/commit/460662e8590c4a2e99a90a8a97b56ed9cb92016f
Author: Eric Carlson <eric.carlson at apple.com>
Date: 2022-11-18 (Fri, 18 Nov 2022)
Changed paths:
M Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.h
M Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.mm
M Source/WebCore/platform/mediastream/mac/AVCaptureDeviceManager.mm
Log Message:
-----------
[Cocoa] Use AVCaptureDeviceDiscoverySession for camera discovery
https://bugs.webkit.org/show_bug.cgi?id=248054
rdar://101919809
Reviewed by Youenn Fablet.
* Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.h:
* Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.mm:
* Source/WebCore/platform/mediastream/mac/AVCaptureDeviceManager.mm:
(WebCore::currentCameras): Use AVCaptureDeviceDiscoverySession.
(WebCore::AVCaptureDeviceManager::updateCachedAVCaptureDevices): Call currentCameras.
(WebCore::AVCaptureDeviceManager::retrieveCaptureDevices): Ditto.
(WebCore::AVCaptureDeviceManager::registerForDeviceNotifications): Key-value observe
AVCaptureDeviceDiscoverySession.devices.
(WebCore::AVCaptureDeviceManager::~AVCaptureDeviceManager): Stop listening.
Canonical link: https://commits.webkit.org/256849@main
More information about the webkit-changes
mailing list