Created
September 11, 2012 11:06
-
-
Save mrsidique/3697618 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mediaType = @"video"; | |
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { | |
[picker setVideoQuality:UIImagePickerControllerQualityTypeLow]; | |
//Maximum video length | |
[picker setVideoMaximumDuration:10]; | |
picker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil]; | |
picker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModeVideo; | |
[self presentViewController:picker animated:YES completion:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment