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

Calling play/pause rapidly in Chrome can cause error #718

Closed
goldfire opened this issue Mar 10, 2017 · 4 comments
Closed

Calling play/pause rapidly in Chrome can cause error #718

goldfire opened this issue Mar 10, 2017 · 4 comments
Labels

Comments

@goldfire
Copy link
Owner

This appears to be related to Chrome issue (it is marked as fixed, but it isn't): https://bugs.chromium.org/p/chromium/issues/detail?id=593273

Basically, if you run the following on a sound that is already playing:

sound.pause();
sound.play();
sound.pause();

You will get the following error in Chrome:

Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().
@inear
Copy link

inear commented Jun 22, 2017

Here is an article describing the issue. https://developers.google.com/web/updates/2017/06/play-request-was-interrupted Is this something that could be handled by howler?

@nboliver
Copy link

+1 for this issue.

Maybe returning the audio.play promise discussed above in sound.play() could let developers work their own soltion?

Encountering when trying to play => seek => pause
(seek while paused)

@smakinson
Copy link

I'm building a vuejs/quasar UI around howler with a seek bar and when I scrub the slider that calls seek I also see the error.

@goldfire
Copy link
Owner Author

This has been fixed with #835.

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

No branches or pull requests

4 participants