[Solved] Selecting Video from Camera Roll [closed]


You can use this:

func getMovie() {
    let selecionadorDeFoto = UIImagePickerController()
    selecionadorDeFoto.delegate = self

    selecionadorDeFoto.mediaTypes = [kUTTypeMovie as String]

    selecionadorDeFoto.allowsEditing = false

    selecionadorDeFoto.sourceType = .photoLibrary

    present(selecionadorDeFoto, animated: true, completion: nil)
}

func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {

    // Your code here
}

6

solved Selecting Video from Camera Roll [closed]