Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added videos in result of getPhotos #237

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

idroxid
Copy link

@idroxid idroxid commented Dec 8, 2020

Hi,

I'm currently developing an app and I'm using your library in order to pick multiple images.
Actually, I need to pick media which can be a mix of images and videos.

So, what I did is to add video property in the GMFetchItem class.
@property (nonatomic, strong) NSString * video;

When the user selects a video within the MediaPicker, I export the video to the tmp zone with no transformation
AVAssetExportPresetPassthrough

Then in the result of the plugin, If the asset is a video, I put the path of the video file instead of the full_image.

Please do not hesitate to give me some feedback. I'll be happy to improve.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants