简体   繁体   English

如何从相机胶卷和照片库中选择多个视频?

[英]How to select multiple video from camera roll and photo Gallery?

I want to upload multiple video to server using ASIHttDataFormRequest.For selecting video ,I am using ImagePickerViewController But it doesn't give the option to select multiple video. 我想使用ASIHttDataFormRequest将多个视频上传到服务器。对于选择视频,我正在使用ImagePickerViewController,但是它没有提供选择多个视频的选项。

Bellow is the code, which is used to open imagePicker and but unable to select multiple video. 波纹管是代码,用于打开imagePicker,但无法选择多个视频。

UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
imagePicker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
imagePicker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
[self presentViewController:imagePicker animated:YES completion:nil];

Please help me by giving some clue or code. 请提供一些提示或代码来帮助我。 Thanks in Advance 提前致谢

Use this sample 使用这个样本

https://github.com/B-Sides/ELCImagePickerController https://github.com/B-Sides/ELCImagePickerController

For video multiple selection refer 有关视频多重选择,请参阅

Use ELCImagePickerController to pick video 使用ELCImagePickerController选择视频

Hope it helps you.. 希望对您有帮助。

Here is the library to take a photo or select from library: https://github.com/fulldecent/FDTake 这是用来拍照或从库中选择的库: https : //github.com/fulldecent/FDTake

This works great so far for photos. 到目前为止,这对于照片来说效果很好。 Video is in progress. 视频正在进行中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从相机胶卷中删除照片? - How to delete a photo from camera roll? 使用Phonegap / Cordova相机插件从相机或图库中选择照片 - Using the Phonegap/Cordova camera plugin select photo from camera OR gallery 如何将视频从AVAssetExportSession保存到相机胶卷? - How to save a video from AVAssetExportSession to Camera Roll? 如何从iOS上的Camera Roll中检索最近的照片? - How to retrieve the most recent photo from Camera Roll on iOS? iOS自动化-从相机胶卷中选择照片 - iOS Automation - Selecting a photo from Camera Roll 如何允许用户从他的相机胶卷或照片库中挑选照片? - How to allow the user to pick a photo from his camera roll or photo library? 如何通过单击相机覆盖上的按钮打开照片库? - How to open photo gallery by clicking a button from a camera overlay? 如何上传从照片库图像或相机中的WebView中的iOS - How to upload image from Photo Gallery or Camera in WebView in iOS 如何从相机胶卷中选择多个图像和视频并将其显示在collectionView中? - how to select multiple images and videos in image from camera roll and display them in a collectionView? Objective c - ios:如何从Camera Roll中选择视频? - Objective c - ios : How to pick video from Camera Roll?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM