android-multipicker-library icon indicating copy to clipboard operation
android-multipicker-library copied to clipboard

Picking Video taking lot of time

Open umesh0492 opened this issue 8 years ago • 8 comments

When picking audio and video of around 150mb with/without metadata and with/without preview image, taking around 10-20 sec. You should ask for max file size to pass at init of and chooser, so that one should not wait for the further processing.

umesh0492 avatar Dec 15 '16 20:12 umesh0492

The file is copied when selected, this is what you are experiencing. https://github.com/coomar2841/android-multipicker-library/issues/29

DrewCarlson avatar Dec 15 '16 21:12 DrewCarlson

Will take a look at this problem and see what can be done. Thanks.

coomar2841 avatar Dec 16 '16 07:12 coomar2841

@coomar2841 Kindly have a look at this. You may ask for max allowed file size at init of any chooser, before processing further.

umesh0492 avatar Mar 08 '17 19:03 umesh0492

@coomar2841 Will 1.1.4 have fix for this?

virengujariya avatar Apr 20 '17 22:04 virengujariya

Turns out, a lot of videos that are behind a content provider don't give a direct file link. Instead, you need to read it from the content provider.

coomar2841 avatar Apr 21 '17 05:04 coomar2841

@coomar2841 Thanks for looking into it. I am uploading file to s3 bucket. Shouldn't content provider path be enough? I don't see a reason to create a copy first.

virengujariya avatar Apr 21 '17 16:04 virengujariya

@coomar2841 Is it possible to show a progress or status or have a responsive method?

virengujariya avatar Apr 25 '17 18:04 virengujariya

+1 there should option like ensureMaxSize() in imagepicker or should be compress size

jatin-lakhani avatar Jul 11 '17 13:07 jatin-lakhani