如何在swift中解决错误协议录制视频?

时间:2014-06-25 10:42:45

标签: ios swift avfoundation

我正在尝试使用AVFoundation录制视频。在目标c中,我有一个协议定义,以.h:

进行委托
 @protocol AVCaptureManagerDelegate <NSObject>
 - (void)didFinishRecordingToOutputFileAtURL:(NSURL *)outputFileURL
                                  error:(NSError *)error;
 @end


 @interface AVCaptureManager : NSObject

 @property (nonatomic, assign) id<AVCaptureManagerDelegate> delegate;

快速需要此代码使用recordingDelegate保存在url中,但需要委托:

self.movieFileOut.startRecordingToOutputFileURL(filePath, recordingDelegate)

我很困惑.. 谢谢!

0 个答案:

没有答案