ampproject / ampproject/amphtml

[amp-player]: Add error handling events

Open
#29,585 1 comment 0 reactions 1 assignee Claimed by @gmajoulet View on GitHub
P3: When Possible Stale Type: Feature Request WG: stories
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

## Describe the new feature or change to an existing feature you'd like to see
- With the new proposal to programatically control the amp-player, it would be helpful to add error events to the player.
- If there's any error that is emitted, e.g. render timeouts, it should fire an event that can be listened to just in case it cannot resolve that error.

## Describe alternatives you've considered
- Currently there are no error events and the only way is to reload the page.

## Additional context
- An example of an error event
![Screenshot 2020-07-30 at 12 08 51](https://user-images.githubusercontent.com/45009681/88904244-826a0880-d25d-11ea-9527-0ea7caf5d9d6.png)
- Ref [#28416](https://github.com/ampproject/amphtml/issues/28416)

cc @Enriqe

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.