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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access