UIVideoEditorController keeps cancelling instead of saving

283 Views Asked by At

I have set up UIVideoEditorController as followed

if UIVideoEditorController.canEditVideo(atPath: video.path) {
    let editController = UIVideoEditorController()
    editController.videoPath = video.path
    editController.delegate = self
    present(editController, animated:true)
}

It will end up in the cancel delegate call and then dismisses the editor

    func videoEditorControllerDidCancel(_ editor: UIVideoEditorController) {
        print("in here")
        editor.dismiss(animated: true, completion: nil)
    }

Does anyone know why this is or if I need additional configurations to get it to work?

0

There are 0 best solutions below