// // MGVideoDelegate.h // MGBaseKit // // Created by Megvii on 2017/4/18. // Copyright © 2017Year megvii. All rights reserved. // #ifndef MGVideoDelegate_h #define MGVideoDelegate_h #import typedef enum : NSUInteger { MGVideoErrorNOPermission = 100, MGVideoErrorNOSessionPreset, MGVideoErrorNODevice, } MGVideoErrorType; @protocol MGVideoDelegate @required - (void)MGCaptureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection; @optional - (void)MGCaptureOutput:(AVCaptureOutput *)captureOutput error:(MGVideoErrorType)error; @end #endif /* MGVideoDelegate_h */