When opening a story with an amp-video element on the first page, the video sometimes fails to load and the story does not start playing. This seems to happen most often when the show() method is called to open the story (e.g. to open a story from a carousel), but it also sometimes occurs when navigating between stories in the player. Sometimes the poster image will load but the video won't start playing, and sometimes neither the poster or the video will load.
It looks like this is caused by a layout race condition. A CANCELLED error is logged by error-reporting.js but the actual error message is Error: layoutComplete race
Disable your browser caching (it still occurs when caching is enabled but more consistently with it disabled)
Click on one of the story cards to open the story. Reload and repeat until it occurs - it occurs more often if the card is clicked soon after the page loads
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Description
When opening a story with an
amp-video
element on the first page, the video sometimes fails to load and the story does not start playing. This seems to happen most often when theshow()
method is called to open the story (e.g. to open a story from a carousel), but it also sometimes occurs when navigating between stories in the player. Sometimes the poster image will load but the video won't start playing, and sometimes neither the poster or the video will load.It looks like this is caused by a layout race condition. A
CANCELLED
error is logged by error-reporting.js but the actual error message isError: layoutComplete race
Reproduction Steps
https://www.loom.com/share/dab0114af0fa418b91c3ca49d4c3268b
Relevant Logs
Browser(s) Affected
No response
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
No response