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

Duration return Invalid numeric value (NaN)

Open Hihoa1999 opened this issue 3 years ago • 1 comments

Please fill the template to help you out. Also, please try the Example project 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 }

Hihoa1999 avatar Jun 28 '22 08:06 Hihoa1999

Could you try our Example project and see if you can reproduce this?

hyochan avatar Oct 15 '22 12:10 hyochan