LeGoffMael / insta_assets_picker

An image picker similar with Instagram, supports multi picking, crop and aspect ratio.
https://pub.dev/packages/insta_assets_picker
MIT License
78 stars 34 forks source link

Request for video support #42

Open joachimbulow opened 2 months ago

joachimbulow commented 2 months ago

Are there any plans on releasing support for video?

Would be insanely helpful, also since the wechat_assets_picker library supports it

joachimbulow commented 1 month ago

@LeGoffMael I would be willing to work on this. Would you be willing to guide me in the right direction?

rezam92 commented 4 weeks ago

I added this feature in https://github.com/LeGoffMael/insta_assets_picker/pull/44

LeGoffMael commented 5 days ago

I discussed about this feature in another issue :

Video crop support would be indeed a really nice feature to this package, but requires a lot of work and time that i unfortunately won't have soon. My plan is to adapt my other package video_editor, to use a similar UI than the one used in this package. I also have to think about the exportation process, if on the device or not. If you're motivated and want to help build this feature, you could check how to adapt the video_editor crop UI (LeGoffMael/video_editor#114), if you could open a PR with this feature i would love to review it.

If you just want to display videos & images, you can look into the example i made in flutter_wechat_assets_picker. There is no crop action, but you can select either images, videos or both. Although it seems that there is some issue with the video player (fluttercandies/flutter_wechat_assets_picker#416), it might help you to achieve your goal.

The goal of this package is to be able to pick (one or more) assets of the same crop ratio value.

To support video assets, my current idea is to :

Other features might be requested (trim, maxDuration, minDuration, ...) so this is just a basic implementation of what could be needed.