File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 44
55const char * ffDetectCamera (FFlist* result)
66{
7- AVCaptureDeviceDiscoverySession* session = [AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes: @[AVCaptureDeviceTypeBuiltInWideAngleCamera] mediaType: AVMediaTypeVideo position: AVCaptureDevicePositionUnspecified];
7+ AVCaptureDeviceType externalType;
8+ if (@available (macOS 14 , *)) // #822
9+ externalType = AVCaptureDeviceTypeContinuityCamera;
10+ else
11+ externalType = AVCaptureDeviceTypeExternalUnknown;
12+ AVCaptureDeviceDiscoverySession* session = [AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes: @[AVCaptureDeviceTypeBuiltInWideAngleCamera, externalType]
13+ mediaType: AVMediaTypeVideo
14+ position: AVCaptureDevicePositionUnspecified];
815 if (!session)
916 return " Failed to create AVCaptureDeviceDiscoverySession" ;
1017
You can’t perform that action at this time.
0 commit comments