gpt4 book ai didi

ios - 找不到捕获的视频 URL

转载 作者:行者123 更新时间:2023-11-28 06:43:13 27 4
gpt4 key购买 nike

当我专门运行这段代码时,我一直收到这个错误:这里可能是什么问题?我假设找不到视频的 URL,但如果是这样,那为什么会这样?

Error copying image: Error Domain=NSURLErrorDomain Code=-1100 "The requested URL was not found on this server." UserInfo={NSLocalizedDescription=The requested URL was not found on this server., NSUnderlyingError=0x161215860 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} Error copying image and no previous frames to duplicate

这是导致问题的代码片段:

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)

最佳答案

最好的办法是:

let outputFileURL = NSURL(fileURLWithPath: NSTemporaryDirectory()).URLByAppendingPathComponent("output.mov")

关于ios - 找不到捕获的视频 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37307956/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com