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
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/
The text was updated successfully, but these errors were encountered:
Current Behavior
When the
playing
prop toggles between true and false in quick succession, or theurl
prop changes soon after theplaying
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 theplaying
orurl
props should await the promise returned fromvideo.play()
before proceeding: https://developer.chrome.com/blog/play-request-was-interrupted/The text was updated successfully, but these errors were encountered: