react-native-compressor: Audio Error: Can't stop due to wrong state(INITIALIZED)

@numandev1 Here, I am trying to compress audio file. But I am facing this Error. My Implementation Audio.compress( 'file:///data/user/0/com.quranmobile/cache/ac9ec453-f614-4c5c-8cb9-585765613842/file_example_MP3_700KB.mp3', {quality: 'high'} ) .then(outputFilePath => { console.log('success', outputFilePath); }) .catch(e => { console.log(e, 'error'); });

Current behavior

Facing error while compressing audio file Error: Can't stop due to wrong state(INITIALIZED)

Expected behavior

Need compressed URI

  • Android
  • Version 10

React Native Version

0.71.11

React Native Compressor Version

1.7.0

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

@sahloulmouhib can you connect with me on linkedin https://www.linkedin.com/in/numandev/

I’ve sent you an invite