How can the quality of Native camera (camera invoke via UIImagePicker) be changed to 4K?

219 Views Asked by At

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?

0

There are 0 best solutions below