react-native-audio-recorder-player
react-native-audio-recorder-player copied to clipboard
Duration return Invalid numeric value (NaN)
Please fill the template to help you out. Also, please try the
Exampleproject compare before submiting the issue when you have certain issue with your project setup.
Version of react-native-audio-recorder-player
3.5.1
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
Duration return Invalid numeric value (NaN)
Actual behavior
startPlayer and duration return Invalid numeric value (NaN).
Steps to reproduce the behabior
const msg = await audioRecorderPlayer.current.startPlayer(path); audioRecorderPlayer.current = new AudioRecorderPlayer(); audioRecorderPlayer.current.addPlayBackListener((e: PlayBackType) => { console.log(e.duration); //e.duration return NaN }
Could you try our Example project and see if you can reproduce this?