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

.stop() only works once in chromium #1129

Closed
ItsOnlyBinary opened this issue Jan 29, 2019 · 2 comments
Closed

.stop() only works once in chromium #1129

ItsOnlyBinary opened this issue Jan 29, 2019 · 2 comments

Comments

@ItsOnlyBinary
Copy link

if i stop and start in chromium it will only allow me to stop once, issue is not present in firefox

i created the following codepen to show the issue, it continues playing after the last stop

https://codepen.io/anon/pen/mvrpKB

@goldfire
Copy link
Owner

Just as an update, this appears to be a bug in Chrome where the play promise stays pending forever when being played for a 2nd time. I'm still trying to figure out a workaround.

@goldfire
Copy link
Owner

Another observation is that it appears to only be an issue with live streaming audio that has a duration of Infinity. Resetting the src on the audio node seems to fix the issue, but that doesn't seem like a great solution.

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