Skip to content
New issue

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

is there a way to stop currently playing audio while starting to play another #136

Open
shebisabeen opened this issue Feb 21, 2022 · 1 comment

Comments

@shebisabeen
Copy link

I am trying to make a simple chat with audio file sharing. The user is able to play multiple audios at the same time, which overlaps the audios. Is there an option to stop currently playing audio while the user starts to play another audio?

@ItsLaro
Copy link

ItsLaro commented Jul 14, 2022

If you have multiple instances of this component for each voice note, I would rely on a global state to ensure that only one audio is being played at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants