开发者

iPhone UIImagePickerController video mode

开发者 https://www.devze.com 2023-01-27 11:00 出处:网络
When using the UIImagePickerController, is there a way to specify the resolution of the captured video, or to restrict the length of the video (based on size).I would love to be able to have the video

When using the UIImagePickerController, is there a way to specify the resolution of the captured video, or to restrict the length of the video (based on size). I would love to be able to have the video capture at a standard lowe开发者_运维问答r res mode rather than 720P.


For iOS 3.1 or later, you can use the videoQuality property of UIImagePickerController. The values are an in the enumeration UIImagePickerControllerQualityType which defines UIImagePickerControllerQualityType{Low|Medium|High}. The default is UIImagePickerControllerQualityTypeMedium. 4.0 and later have additional resolution options.

As for duration, the property videoMaximumDuration allows you to specify the maximum time in seconds.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号