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

AbortError: The play() request was interrupted by a call to pause() #1711

Closed
amirghafouri opened this issue Nov 13, 2023 · 0 comments
Closed

Comments

@amirghafouri
Copy link

Current Behavior

When the playing prop toggles between true and false in quick succession, or the url prop changes soon after the playing props is set to true, these errors are thrown many times in our production logs:

AbortError: The play() request was interrupted by a call to pause().
AbortError: The play() request was interrupted by a new load request.

Expected Behavior

This issue was reported here back when it was unhandled: #200

And the solution was to throw the error to the onError handler rather than leave it unhandled, but I would argue that the player should not be throwing an error here at all. Any changes to the playing or url props should await the promise returned from video.play() before proceeding: https://developer.chrome.com/blog/play-request-was-interrupted/

@luwes luwes closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2024
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