Alright, so i am making a video only app with AVKit and MobileCoreServices. The video part works perfect except for when I click "Use Video", it doesn't save it like it's supposed to. Here are all my functions being called upon:
This function isn't being called correctly for some reason but i am receiving no errors or console errors/warnings
Here is my extension where i am calling the video function in the UISaveVideoAtPathToSavedPhotosAlbum.
Here is the button action, where when it is pressed, i am calling the startCameraFromViewController function.
And finally here is the startCameraFromViewController function.
It looks like the problem is that your UIImagePickerControllerDelegate
method signature doesn't quite match. (Probably the example you used was from Swift 2 and has changed for Swift 3). The proper signature is:
optional func imagePickerController(_ picker: UIImagePickerController,
didFinishPickingMediaWithInfo info: [String : Any])
Note the underscore before the first argument.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.