zmxv / react-native-sound

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

getCurrentTime dynamic? #660

Open shahanshah87 opened 4 years ago

shahanshah87 commented 4 years ago

is getCurrentTime is dynamic? If it is how can we use it? Thanks in advance

ErHarinderSingh commented 4 years ago

use setInterval at set time for interval is 1000 Then pass getCurrentTime function inside that and you will get current time after each one second. If you set interval to 250. 250*4=1000ms It means you will get 4 time currentTime within a second. Got my point?