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
There's not a clear perfect solution for this one. We have a couple of partial solutions:
In supporting browsers, wait on the Promise from the play and pause methods to fire another play or pause.
Only play or pause if we aren't already in that state.
The problem is (I tested it), there's another similar error which will crop up even if we did sequence the method calls: Uncaught (in promise) DOMException: The play() request was interrupted by a new load request.
This one's trickier - the load request is because we assigned the src attribute on our audio element, and we don't have a clear way to wait on that. We could try to obfuscate it, but since all our functionality already works, and this error only surfaces for extremely fast song navigation, it would be best to let the errors surface in the console, in case one of them is actually important.
Rapid-fire skips can lead to a console error:
Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().
While this error doesn't (yet) appear to have any particular negative consequences, we should try to avoid throwing it.
This answer from Stack Overflow may help us think about how to solve the problem.
The text was updated successfully, but these errors were encountered: