I am making Video Upload App in IOS. I got a problem on UIImagePickerController.
That is, When I whenever select a Movie, It compressed automatically.
I had tried every VideoQuality Options. (High, Medium, Low)
Do I use other Controller or my own Controller?
A short video(5 minutes) compression spends very long time(several minutes) on my iPhone(4S).
I think that my app supports over 10 minute video at least.
My Code are like this.
- (void)showImagePicker:(UIImagePickerControllerSourceType)sourceType
{
if ([UIImagePickerController isSourceTypeAvailable:sourceType]) {
[picker setSourceType:sourceType];
[picker setMediaTypes:[NSArray arrayWithObject:(NSString *)kUTTypeMovie]];
// Video Quality Setting..
[picker setVideoQuality:UIImagePickerControllerQualityTypeHigh];
[self presentModalViewController:picker animated:YES];
}
}
- (IBAction)showLibrary:(id)sender
{
[self showImagePicker:UIImagePickerControllerSourceTypeSavedPhotosAlbum];
}
- (IBAction)showCamera:(id)sender
{
[self showImagePicker:UIImagePickerControllerSourceTypeCamera];
}