Open mafreud opened 1 year ago
My suggestion is to add a property like swift's maxRecordedFileSize to the image picker.
It looks like this is only relevant for a capture source; UIImagePickerController
allows specifying a max duration, but not a max size in bytes, so we'd need to clearly document that.
pickImage method has a method to adjust the file size but pickVideo does not.
maxRecordedFileSize
doesn't allow adjusting the file size after the fact, so you'd be getting very different functionality from what the max image resolution provides. Is that actually what you want, or are you looking for something that re-encodes an existing video after the fact to a smaller size? The latter is probably out of scope for this plugin, and something best implemented in a separate plugin.
First of all, thank you so much for creating the best package!! My suggestion is to add a property like swift's maxRecordedFileSize to the image picker. pickImage method has a method to adjust the file size but pickVideo does not.