We need to replace "allPhotos" with "allAssets" in ALAssetsFilter with
two places to display all assets (including video) in the ELCImagePickerController code
as indicated below
First change:
ALAssetsGroup *g = (ALAssetsGroup*)[assetGroups objectAtIndex:indexPath.row]; [g setAssetsFilter:[ALAssetsFilter **allAssets**]];
Second:
In the tableView method didSelectRowAtIndexPath didSelectRowAtIndexPath:(NSIndexPath *)indexPath
[picker.assetGroup setAssetsFilter:[ALAssetsFilter **allAssets**]]
But the thumbnail of the video image will be the same as the thumbnail image to change its spelling of its own code in the ELCAsset.m constructor of the initWithAsset:(ALAsset*)_asset class initWithAsset:(ALAsset*)_asset
For example:
check
if ([self.asset valueForProperty:ALAssetPropertyType] == ALAssetTypeVideo ){ // code for video thumbnail } if ([self.asset valueForProperty:ALAssetPropertyType] == ALAssetTypePhoto ){ // code for Photo thumbnail }
Mohit nigam
source share