react-native-audio-recorder-player
react-native-audio-recorder-player copied to clipboard
The currentPostion in addPlayBackListener is refreshed when the record is greater than 10 seconds.
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;
};
@hyochan , Hi , do you know what a reason?
Same issue any solution??
Could you kindly tell the version you are using?
Also please use the latest version if you are not using it
Same issue any solution??
Was having issue on Android simulator, works fine on actual device!
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.