-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Issue with async play() in Chrome #3474
Comments
Thank you Austin for the call this morning, and got a better understanding Have a great weekend! On Thursday, July 28, 2016, Diego Barahona notifications@github.com wrote:
|
This will be fixed by #3518 |
This should be fixed in 5.11.3 |
For info, I've just published an article about this exact issue at https://developers.google.com/web/updates/2017/06/play-request-was-interrupted that tells you exactly what is happening and how to fix it. |
Just ran into this issue with 6.2.0 and some plugin code, thanks for the article @beaufortfrancois. |
Still seeing this in 6.2.4. Is it still happening in 6.2.8? |
Still seeing this in 6.4.0 if I seek a second time while player is still loading video for the first seek.
|
Unless you're seeing issues with playback, you can safely ignore this error. |
I was able to reproduce the issue on videojs.com site. This is how it looks when user has relatively slow internet connection speed: play-pause-bug-on-videojs-com.zip |
version |
I confirm that it's still an issue in version 7.8.4 |
@chuchuva Can you please provide more information about where you're seeing the issue and detailed steps to reproduce? |
@gkatsev I saw it in the logs. I can't reproduce it, sorry. 😞 |
Description
Chrome recently changed the play() method to return a promise, and this is causing issue when you call load() or pause() before the promise is resolved:
Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
Uncaught (in promise) DOMException: The play() request was interrupted by a call to load()
Steps to reproduce
-- or --
Results
En error is logged, but the video is still working
Expected
Wait for the play() promise to be resolved before calling another method
Actual
The play is expected to be sync and thus pause() and load() are being callede inmediatelly
Error output
Case 1: Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
Case 2: Uncaught (in promise) DOMException: The play() request was interrupted by a call to load()
Additional Information
Bug report in chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=593273
versions
videojs
5.10.7 and 5.11.0
browsers
Chrome 51.0.2704.103 (not only this version)
OSes
OSx 10.10.5 (not only this OS)
plugins
No
The text was updated successfully, but these errors were encountered: