zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.78k stars 749 forks source link

getCurrentTime returns incorrect value in short range and is not progressing farther. #669

Open Hook-Da opened 4 years ago

Hook-Da commented 4 years ago

I'm trying to show progress with slider and in setInterval I try to whoosh.getCurrentTime((seconds) => console.log(seconds), 1000) and only value I get as seconds lies in 1 or 2 seconds range and not progressing indicating real progress, sometimes this range changes but all the same in short time it's stop progressing. Music itself is playing it's great and I can get whoosh.getDuration() without problem. The only problem that I facing now whoosh.getCurrentTime() return inadequate result.

I'm testing on genymotion custom device with android 8. Please help.

Hook-Da commented 4 years ago

I checked on other emulators with lower version of android and it actually works fine.