Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use ELCImagePickerController to pick video

Tags:

ios

I am trying to pick video by ELCImagePickerController from photo library, but when I print this

NSLog(@"%@",[dict valueForKey:@"UIImagePickerControllerMediaType"]);

it returns ALAssetTypeVideo , not a public.movie type,

I have no idea is there any way to pick a movie(like .mov) from ALAssetTypeVideo ?

sorry , My English is not very good :')

like image 355
andy shih Avatar asked Mar 29 '12 19:03

andy shih


1 Answers

Change ALAssetsGroup filter to allAssets in ELCAlbumPickerController.m file:

here:

 ALAssetsGroup *g = (ALAssetsGroup*)[assetGroups objectAtIndex:indexPath.row];
    [g setAssetsFilter:[ALAssetsFilter allPhotos]];

and here:

[picker.assetGroup setAssetsFilter:[ALAssetsFilter allPhotos]];
like image 103
Tanya Vybornova Avatar answered Nov 15 '22 10:11

Tanya Vybornova