Skip to content

Fix HLS startup when the first content steering pathway fails - #1623

Open
yucheng-du wants to merge 1 commit into
videojs:mainfrom
yucheng-du:fix/initial-hls-pathway-failover
Open

yucheng-du wants to merge 1 commit into
videojs:mainfrom
yucheng-du:fix/initial-hls-pathway-failover

Conversation

@yucheng-du

@yucheng-du yucheng-du commented Dec 2, 2026 •

Copy link
Copy Markdown

Description

Fixes #1621. If the default HLS pathway fails before playback starts, VHS can now load the media playlist from another CDN. The published 3.17.6 player stopped after the first 404 and never requested a segment.

Specific Changes proposed

Request HLS steering alongside the first media playlist. When the last rendition on a pathway fails, select the next available pathway using the server's priority list, or the playlist order while the steering response is pending. If only one pathway remains, retry it after the usual delay. Use the default five-minute penalty before the first steering response supplies a TTL.

I played a local H.264/AAC stream in Chrome, Firefox and WebKit. All three recovered when the playlist failed before or after the steering response, when the steering server was offline, and when the backup initially failed too. Both live and VOD played. The Karma suite passed in Chrome (1,441 tests) and Firefox (1,434).

Requirements Checklist

  • Bug fixed
  • Unit tests added for both response orders and a temporary outage of all pathways
  • Reviewed by two core contributors

See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@welcome

welcome Bot commented Dec 2, 2026

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖

Things that will help get your PR across the finish line:

  • Run npm run lint -- --errors locally to catch formatting errors earlier.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HLS content steering: playback stalls at 0 when the initial pathway fails to load

1 participant