Video not compressing below 10 mb
aamez opened this issue ยท 9 comments
Hi, first of all I appreciate your effort for making this package. Gone through your excel for video compress, can you do the compression for video below 10 mb? or else can you refer some other package for the same?
@aamez you can remove this condition for android
https://github.com/Shobbak/react-native-compressor/blob/dd5c106522461005acd89d6f679c0ef2f96fdd74/android/src/main/java/com/reactnativecompressor/Video/AutoVideoCompression/AutoVideoCompression.java#L38
and remove this condition for IOS to compress video which size is 16MB
https://github.com/Shobbak/react-native-compressor/blob/dd5c106522461005acd89d6f679c0ef2f96fdd74/ios/Video/VideoCompressor.swift#L205
@aamez you can remove this condition for android
https://github.com/Shobbak/react-native-compressor/blob/dd5c106522461005acd89d6f679c0ef2f96fdd74/android/src/main/java/com/reactnativecompressor/Video/AutoVideoCompression/AutoVideoCompression.java#L38and remove this condition for IOS to compress video which size is 16MB
https://github.com/Shobbak/react-native-compressor/blob/dd5c106522461005acd89d6f679c0ef2f96fdd74/ios/Video/VideoCompressor.swift#L205
Great man it worked, thanks :)
@joxw1 no, I did not add. I forgot. i will add it today
@joxw1 i have added minimumFileSizeForCompress
for this purpose
https://github.com/Shobbak/react-native-compressor#minimumfilesizeforcompress-number-default-16
i will release today after fixing one or two more issue
https://github.com/Shobbak/react-native-compressor#minimumfilesizeforcompress-number-default-16
just released 1.1.0
version of the compressor which has fixed this issue.
yarn add react-native-compressor@1.1.0