We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cool module but I also like to know the status of the player to know if it is loading, playing or stopped.
The text was updated successfully, but these errors were encountered:
You can do it as such:
this.intervalIdStreamState = setInterval(() => { ReactNativeAudioStreaming.getStatus((error, info) => { let streamStatus if (error) { streamStatus = 'error' console.log(error); } else { streamStatus = info.status.toLowerCase() } if (this.state.streamStatus !== streamStatus) { console.log('streamStatus stream CHANGED', streamStatus) this.setState({ streamStatus }, () => this.onStreamStateChange(streamStatus)) } }) }, 200)
Sorry, something went wrong.
No branches or pull requests
Cool module but I also like to know the status of the player to know if it is loading, playing or stopped.
The text was updated successfully, but these errors were encountered: