1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
Source-SnapChatCamera/ManagedCapturer/SCCaptureDeviceResolver.h
2018-08-08 02:23:44 +03:00

32 lines
697 B
Objective-C

//
// SCCaptureDeviceResolver.h
// Snapchat
//
// Created by Lin Jia on 11/8/17.
//
//
#import <AVFoundation/AVFoundation.h>
/*
See https://jira.sc-corp.net/browse/CCAM-5843
Retrieving AVCaptureDevice is a flaky operation. Thus create capture device resolver to make our code more robust.
Resolver is used to retrieve AVCaptureDevice. We are going to do our best to find the camera for you.
Resolver is only going to be used by SCManagedCaptureDevice.
All APIs are thread safe.
*/
@interface SCCaptureDeviceResolver : NSObject
+ (instancetype)sharedInstance;
- (AVCaptureDevice *)findAVCaptureDevice:(AVCaptureDevicePosition)position;
- (AVCaptureDevice *)findDualCamera;
@end