Open Alex-Vasilev opened 1 month ago
I'm having the same problem.
Using the code available in the docs to start playing and using the mmss
function reproduces the behavior:
onStartPlay = async () => {
console.log('onStartPlay');
const msg = await this.audioRecorderPlayer.startPlayer();
console.log(msg);
this.audioRecorderPlayer.addPlayBackListener((e) => {
this.setState({
currentPositionSec: e.currentPosition,
currentDurationSec: e.duration,
playTime: this.audioRecorderPlayer.mmss(Math.floor(e.currentPosition)),
duration: this.audioRecorderPlayer.mmss(Math.floor(e.duration)),
});
return;
});
};
Version of react-native-audio-recorder-player 3.6.10
Version of React Native 0.75.2
Platforms you faced the error (IOS or Android or both?) IOS (Android - ?)
Expected behavior eg 00:01, 00:02, 00:03 ....
Actual behavior 00:12, 35:24, 23:46...
Steps to reproduce the behabior use of the method