react-native-audio-recorder-player icon indicating copy to clipboard operation
react-native-audio-recorder-player copied to clipboard

pauseRecorder not working in some cases

Open aneena-thomas opened this issue 2 years ago • 5 comments

@hyochan pauseRecorder not working in some cases.

Version: 3.1.2

aneena-thomas avatar Sep 15 '21 13:09 aneena-thomas

@hyochan Pause function is working fine when we click on it the first time, the issue happens when we go back to another screen after stopping and then come to the audio screen and start recording and pausing. At that time audio player throws an already paused message but it's still recording.

aneena-thomas avatar Sep 22 '21 06:09 aneena-thomas

This will fix the issues:

const audioRecorderPlayer = useRef(new AudioRecorderPlayer()).current;

lukebrandonfarrell avatar Oct 03 '21 11:10 lukebrandonfarrell

This will fix the issues:

const audioRecorderPlayer = useRef(new AudioRecorderPlayer()).current;

This help me when pause or stop playing not worked.

olda220 avatar Dec 12 '21 22:12 olda220

This will fix the issues:

const audioRecorderPlayer = useRef(new AudioRecorderPlayer()).current;

@lukebrandonfarrell Any idea what might be causing my issue? I also did the same thing with useRef that you recommended here and I seem to be having the same issue

  • #442

KrisLau avatar May 03 '22 15:05 KrisLau

I fixed it in #452 and released in v3.5.1

pnthach95 avatar Jun 06 '22 07:06 pnthach95