'image_picker maxDuration not limiting videos in gallery selection (Android or iOS) - Flutter
Utilizing image_picker: ^0.7.5+3 Using iPhone 12, iOS 14, Android Google Pixel, Android 10.
Code:
var pickerFile = await ImagePicker().getVideo(source: source, maxDuration: Duration(seconds: 30));
(I've used ImagePicker(), or _picker variable approaches, same result).
Expected results: If you choose 'Camera' and recording a video, the pub WILL limit it to 30 seconds (as per code above). However, if you choose 'Gallery', it will display videos that are OVER 30 seconds. Obviously ignoring the maxDuration param. I swear this package used to limit that so you could only see videos in the Gallery that are 30 seconds or less.
Actual results: Videos in Gallery that are over 30 seconds are available for selection. They shouldn't be as per the maxDuration param.
Anybody else experiencing this? Any resolutions/ideas?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|