Video Customization
If you are capturing video you can make some video-specific
customizations using the videoQuality
and videoMaximumDuration properties of
the UIImagePickerController
class:
pickerController.videoQuality = UIImagePickerControllerQualityTypeLow; pickerController.videoMaximumDuration = 90; // Maximum 90 seconds duration
Table 2-3 illustrates
the expected sizes of a typical 90 second movie file for the three
possible image quality levels, which defaults to UIImagePickerControllerQualityTypeMedium.
Table 2-3. Size of 90 seconds duration video for different quality settings
Quality | Size |
|---|---|
| 1.8 MB |
| 8.4 MB |
| 32 MB |
The maximum, and default, value for the videoMaximumDuration property is 10 minutes.
Users are forced to trim longer video to match the duration you
request.