zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 747 forks source link

current time is not accurate #732

Open viveKing21 opened 3 years ago

viveKing21 commented 3 years ago

Current time (sec) value isn't accurate, some times it goes more than the duration time (sec)

example :

mp3._duration or mp3.getDuration() = 263.203000005

setInterval(() => { mp3.getCurrentTime((sec) => { console.log(sec) //after 263 passed it goes to 264.150 }) }, 1000)

is there any event like onCurrentTimeChange on this lib??

or how can i fix this??

fukemy commented 2 years ago

hi, did u solved this?

fukemy commented 2 years ago

@zmxv plz double check this issue bro