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.
我尝试了每一种视频质量选择。 (高、中、低)
我是否使用其他主计长或我的主计长?
短视视频(5分钟)压缩时间(每分钟)在我的Pi(4S)上很长。
我认为,我至少支持10分钟以上的录像。
我的法典就是这样。
- (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];
}