react-native-compressor icon indicating copy to clipboard operation
react-native-compressor copied to clipboard

On IOS is work fine, but Android always error null

Open Fudci opened this issue 3 years ago • 5 comments

LOG {"error": [Error: null]} compression error

This is my code :

const dstUrl = await Video.compress( sourceVideo, { compressionMethod: 'auto', // minimumFileSizeForCompress: 5, // maxSize: 1000, minimumFileSizeForCompress:1 }, (progress) => { if (backgroundMode) { console.log('Compression Progress: ', progress); } else { setCompressingProgress(progress); } } );

Fudci avatar Jun 28 '22 19:06 Fudci

👋 @Fudci Thanks for opening your issue here! If you find this package useful hit the star🌟!

github-actions[bot] avatar Jun 28 '22 19:06 github-actions[bot]

@Fudci same issue.

Liqiankun avatar Jun 29 '22 05:06 Liqiankun

@nomi9995

Liqiankun avatar Jun 30 '22 00:06 Liqiankun

I have Also same issue ..

mani627 avatar Aug 18 '22 05:08 mani627

Please reply ASAP....

................................................................................................................ try { let result = await Video.compress( response.assets["0"].uri , { compressionMethod: 'auto',

        },
          (progress) => {
            if (backgroundMode) {
              console.log('Compression Progress: ', progress);
            } else {
              setCompressingProgress(progress);
            }
          }
        )
        console.log('compression result', result);
      } catch (error) {
        console.log(error , 'compression error');

      }

................................................................................

i used realpath uri and temporary path uri (content://), but both gives same error like ->LOG {"error": [Error: null]} compression error

mani627 avatar Aug 18 '22 08:08 mani627

Same issue any solution @mani627 @Liqiankun

fs-ahsan avatar May 25 '23 13:05 fs-ahsan

same issue

hsilvap avatar Jul 06 '23 01:07 hsilvap

any solution?

harleenarora avatar Jul 24 '23 07:07 harleenarora

fixed in latest version

numandev1 avatar Sep 14 '23 22:09 numandev1