ios/iphone photo burst mode api

后端 未结 2 833
执笔经年
执笔经年 2021-02-04 17:51

I\'m trying to capture multiple photos on highest resolution(AVCaptureSessionPresetPhoto) on iPhone 5s. I tried using the following code:

    dispatch_semaphore_         


        
2条回答
  •  终归单人心
    2021-02-04 18:21

    Use this method for burst mode in iOS 8 and above:

    - (void)captureStillImageBracketAsynchronouslyFromConnection:(AVCaptureConnection *)connection withSettingsArray:(NSArray *)settings completionHandler:(void (^)(CMSampleBufferRef sampleBuffer, AVCaptureBracketedStillImageSettings *stillImageSettings, NSError *error))handler NS_AVAILABLE_IOS(8_0);
    

    Documentation

提交回复
热议问题