Skip to content

Silence Chrome error about interrupted play() requests #836

Closed
@joeyparrish

Description

@joeyparrish

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    flag: good first issueThis might be a relatively easy issue; good for new contributorsstatus: archivedArchived and locked; will not be updatedtype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions