You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.
Hi :)
i'm trying to do a progress bar that use the percentage, so i need the duration and the currenti time. But i'm using a while loop that is not working, anyone can help?
Hi :)
i'm trying to do a progress bar that use the percentage, so i need the duration and the currenti time. But i'm using a while loop that is not working, anyone can help?
_statusChanged(status) {
console.log(status);
RNAudioStreamer.duration((err, duration)=>{
if(!err){
console.log(duration);
this.setState({duration: duration});
} //seconds
})
while(status === 'PLAYING'){
RNAudioStreamer.currentTime((err, currentTime)=>{
if(!err){
console.log(currentTime);
this.setState({currentTime: currentTime});
}//seconds
})
}
}
The text was updated successfully, but these errors were encountered: