Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The currentPostion in addPlayBackListener is refreshed when the record is greater than 10 seconds. #562

Open
mira1504 opened this issue Oct 18, 2023 · 5 comments

Comments

@mira1504
Copy link

const onStartPlay = useCallback(() => {
setPaused(false);
audioRecorder.startPlayer(voiceRecord);

const playbackListener = (e: PlayBackType) => {
  setCurrentPositionSec(e.currentPosition);
  setCurrentDurationSec(e.duration);
  setPlayTime(e.currentPosition);
  setDuration(e.duration);

  if (e.currentPosition === e.duration) {
    onStopPlay();
  }
  return;
};

image

@mira1504
Copy link
Author

@hyochan , Hi , do you know what a reason?

@shahid-vorksol
Copy link

Same issue any solution??

@hyochan
Copy link
Owner

hyochan commented Nov 1, 2023

Could you kindly tell the version you are using?

Also please use the latest version if you are not using it

@shahid-vorksol
Copy link

Same issue any solution??

Was having issue on Android simulator, works fine on actual device!

@shahid-vorksol
Copy link

Could you kindly tell the version you are using?

Also please use the latest version if you are not using it

I am using 3.5.1, as the new versions were causing app crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants