I am trying to invoke Camera through UIImagePicker like below,
if UIImagePickerController.isSourceTypeAvailable(.camera) {
let imagePicker = UIImagePickerController()
imagePicker.delegate = self
imagePicker.sourceType = .camera
imagePicker.mediaTypes = [kUTTypeMovie as String]
imagePicker.cameraCaptureMode = .video
imagePicker.allowsEditing = false
imagePicker.videoQuality = .typeHigh
imagePicker.videoExportPreset = AVAssetExportPreset3840x2160
helperGetAppDeleate().navigation.present(imagePicker, animated: true, completion: nil)
}
With the videoQuality as .typeHigh. Although my phone supports 4k, still the videoQuality doesn't seem to increase more than 1920x1080. In addition to that the videoExportPreset is deprecated and I am unable to use it.
Any ideas?