LightCompressor icon indicating copy to clipboard operation
LightCompressor copied to clipboard

Add parameter to file instead of URI,bacause the amount of data in the app increased dramatically

Open ppg408331701 opened this issue 3 years ago • 1 comments

VideoCompressor.start(),now only pass URIs,

I found that every time I compressed the video, the amount of data in the app increased dramatically,

I'm guessing it's because of the sandbox path required by Android Q, and LightCompressor copies the file once per compression

I hope to add a new method, and I will handle the sandbox path by myself

Or put the compressed cache file in the cache directory

IMG_20220809_164843 jpg

ppg408331701 avatar Aug 09 '22 08:08 ppg408331701

The size increased by each compression is equal to the original size + compress size

ppg408331701 avatar Aug 09 '22 11:08 ppg408331701