Skip to Main Content
Basic Sensors in iOS
book

Basic Sensors in iOS

by Alasdair Allan
July 2011
Beginner to intermediate content levelBeginner to intermediate
108 pages
2h 29m
English
O'Reilly Media, Inc.
Content preview from Basic Sensors in iOS

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

UIImagePickerControllerQualityTypeLow

1.8 MB

UIImagePickerControllerQualityTypeMedium

8.4 MB

UIImagePickerControllerQualityTypeHigh

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.
Start your free trial

You might also like

Building iPhone and iPad Electronic Projects

Building iPhone and iPad Electronic Projects

Mike Westerfield
iPhone and iPad App 24-Hour Trainer

iPhone and iPad App 24-Hour Trainer

Abhishek Mishra, Gene Backlin
BioCoder #3

BioCoder #3

O'Reilly Media, Inc.
iOS 7 Programming Cookbook

iOS 7 Programming Cookbook

Vandad Nahavandipoor

Publisher Resources

ISBN: 9781449309480Supplemental ContentErrata Page