Silence Chrome error about interrupted play() requests #836
Labels
flag: good first issue
This might be a relatively easy issue; good for new contributors
status: archived
Archived and locked; will not be updated
type: enhancement
New feature or request
Milestone
Chrome sometimes throws this error in the JS console:
Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
This is not a real problem, and this log comes from Chrome, not the app. The error is very confusing to developers, and it often shows up as a red herring in Shaka Player bug reports.
App developers have been complaining about it to Chrome for more than a year now, and although the error appears less often since Chrome 52, it continues to occur in some cases.
Since this error adds no value for us and is confusing for developers, we should silence this error with a polyfill on HTMLMediaElement.prototype.play.
The text was updated successfully, but these errors were encountered: