最近在做视频录制的项目,发现
exportAsynchronouslyWithCompletionHandler block
有时候不调用。
查了一下原因,在于文件类型设置,改为AVFileTypeQuickTimeMovie就可以了。
//[exportSession setOutputFileType:AVFileTypeMPEG4];
[exportSession setOutputFileType:AVFileTypeQuickTimeMovie];
虽然是个小问题,还是得记录一下。