Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
4b51a0d
commit 460662e
Showing
3 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters