简体   繁体   中英

Avoid Video compression while picking video using uiimagepickercontroller

I'm using UIImagePickerController to allow my user to select a video .

When the user selects the "Choose" button on the second screen, the view displays a progress bar and a "Compressing Video..." message.

Is there some way I can avoid this compression operation?

Try to set the videoQuality property of UIImagePickerController

The video quality setting specified by this property is used during video recording. It is also used whenever picking a recorded movie. Specifically, if the video quality setting is lower than the video quality of an existing movie, displaying that movie in the picker results in transcoding the movie to the lower quality. UIImagePickerController Reference

Available quality values are:

UIImagePickerControllerQualityTypeHigh
UIImagePickerControllerQualityTypeMedium
UIImagePickerControllerQualityTypeLow
UIImagePickerControllerQualityType640x480
UIImagePickerControllerQualityTypeIFrame1280x720
UIImagePickerControllerQualityTypeIFrame960x540

Please see UIImagePickerController Reference for detail.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM