1
我特意運行這段代碼時遇到此錯誤:這裏可能存在什麼問題?我假設沒有找到視頻的網址,但如果是這種情況,那麼爲什麼會發生這種情況?找不到捕獲的視頻網址
複製圖像時出錯:錯誤域= NSURLErrorDomain代碼= -1100「在此服務器上找不到請求的URL。的UserInfo = {NSLocalizedDescription =所請求的URL不在此服務器上找到,NSUnderlyingError = 0x161215860 {錯誤域= NSPOSIXErrorDomain代碼= 2「沒有這樣的文件或目錄」}} 錯誤複製圖像,並沒有以前的幀複製
這裏的代碼導致問題的片段:
isRecording = true
self.godDamnWebView.hidden = true
UIView.animateWithDuration(0.5, delay: 0.0, options: [.Repeat, .Autoreverse, .AllowUserInteraction], animations: {() ->() in
self.cameraButton.transform = CGAffineTransformMakeScale(0.5, 0.5)
}, completion: nil)
let outputPath = NSTemporaryDirectory() + "output.mov"
let outputFileURL = NSURL(fileURLWithPath: outputPath)
videoFileOutput?.startRecordingToOutputFileURL(outputFileURL, recordingDelegate: self)