I imported CameraManager in a Swift project to easily capture video in my app. But I'm not sure how to export the captured video to my iOS folder following this code :
cameraManager.stopVideoRecording({ (videoURL, error) -> Void in
NSFileManager.defaultManager().copyItemAtURL(videoURL, toURL:
self.myVideoURL, error: &error)
})
In Swift 4, I needed this updated code :
cameraManager.stopVideoRecording({ (videoURL, error) -> Void in
FileManager.default.copyItem(at: videoURL, to: self.videoURL)
})
I think I need to change this value but...
self.videoURL
If anyone could help !
Thanks a lot