ampproject / ampproject/amphtml

[Story video] Videos fail to load in stories and flash multiple times

Open
#33,171 2 comments 0 reactions 1 assignee Claimed by @mszylkowski View on GitHub
Stale Type: Bug WG: stories
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

In the Discover carrousel stories that have videos can have those videos fail to load, while they flash multiple times indicating that the video is being reloaded over and over.

The issue lies in `flexible-bitrate.js` that will downgrade the video once (when the video takes more than 100ms to load) and then it will continually `updateOtherManagedAndPausedVideos_` which calls `load` again on the video.

This behavior can be reproed in https://codepen.io/mszylkowski/pen/JjbeEEr, where there's a gap between `waiting` and `playing` of more than 100ms when changing the sources.

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.