I want to open photoLibrary and select one video file from that. I cant open library successfully, but when I select one video from library first video compressed and then UIImagePickerControllerDelegate method call. I don't need compressing video, how can solve this problem. there is my code for loading photo library:
fileprivate func openGalleryWithVideoType() {
let imagePicker = UIImagePickerController()
imagePicker.navigationBar.barTintColor = UIColor.black
imagePicker.navigationBar.tintColor = UIColor.white
imagePicker.sourceType = .savedPhotosAlbum
imagePicker.mediaTypes = [kUTTypeMovie as String]
imagePicker.allowsEditing = false
imagePicker.delegate = self
self.present(imagePicker, animated: true, completion: nil)
}
this image showing my problem with compressing bar in top UP view and compressing process bar in bottom side.