Hello,
does PHPhotoPickerViewController offer any options to specify which resolution should the selected video to be? Meaning can it do automatic compression like UIImagePickerViewController with videoExportPreset settings?
Or is this supposed to be handled in the app itself? Say I want to always have Full HD or 4K videos (if available) how would I go about achieving that?
Thanks
does PHPhotoPickerViewController offer any options to specify which resolution should the selected video to be? Meaning can it do automatic compression like UIImagePickerViewController with videoExportPreset settings?
Or is this supposed to be handled in the app itself? Say I want to always have Full HD or 4K videos (if available) how would I go about achieving that?
Thanks
Hi!
PHPickerViewController doesn't perform any automatic compression. Another way to look at it is you can assume videoExportPreset is always being set to AVAssetExportPresetPassthrough.
The app is suppose to handle the compression, if necessary. You can use AVAssetExportSession to transcode the video.
PHPickerViewController doesn't perform any automatic compression. Another way to look at it is you can assume videoExportPreset is always being set to AVAssetExportPresetPassthrough.
The app is suppose to handle the compression, if necessary. You can use AVAssetExportSession to transcode the video.