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-SnapChat/BlackCamera/SCCaptureSessionFixer.m
2018-05-24 00:22:14 +03:00

22 lines
412 B
Objective-C

//
// SCCaptureSessionFixer.m
// Snapchat
//
// Created by Derek Wang on 05/12/2017.
//
#import "SCCaptureSessionFixer.h"
#import "SCCameraTweaks.h"
@implementation SCCaptureSessionFixer
- (void)detector:(SCBlackCameraNoOutputDetector *)detector didDetectBlackCamera:(id<SCCapturer>)capture
{
if (SCCameraTweaksBlackCameraRecoveryEnabled()) {
[capture recreateAVCaptureSession];
}
}
@end