Skip to content

Content Steering - #5191

Merged
robwalch merged 14 commits into
masterfrom
feature/content-steering
Feb 18, 2023
Merged

robwalch merged 14 commits into
masterfrom
feature/content-steering

Conversation

@robwalch

@robwalch robwalch commented Jan 27, 2023 •

Copy link
Copy Markdown
Collaborator

This PR will...

Add support for HLS Content Steering. This includes Steering Manifest loading and refresh, as well as Pathway grouping, selection and Pathway Cloning.

Support for legacy redundant streams is maintained and covered by new tests. The HLS.js light build options remove the Content Steering Controller from the light build. The light build treats the multiple Pathways as redundant levels so long as they have variants with matching quality attributes (same as previous releases without Content Steering/PATHWAY-ID support).

The advantage of using a Steering Manifest is that it allows for more dynamic redundancy and URL/host switching, controlled remotely.

With these changes the player will always switch to the Steering Manifest's highest priority Pathway regardless of errors encounters. A followup PR will address Pathway error penalties and switching Pathways on error.

Resolves issues:

Addresses a majority of #5074

Pathway penalty will be addressed in a follow up PR (#5241):

Penalize Pathway when all variant streams in a Pathway fail (Look at player penalty box timeout, but consider re-evaluating after Content Steering Manifest refresh)

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch
robwalch force-pushed the feature/content-steering branch 3 times, most recently from a0ddbc0 to d151621 Compare January 27, 2023 23:10
@robwalch
robwalch force-pushed the feature/content-steering branch 4 times, most recently from 3779c7a to 9cbb91f Compare February 1, 2023 00:28
@robwalch
robwalch force-pushed the feature/content-steering branch 2 times, most recently from b2d51ca to 05b8a59 Compare February 10, 2023 00:51
@robwalch
robwalch force-pushed the feature/content-steering branch 2 times, most recently from 510f954 to cc87b72 Compare February 14, 2023 03:00
@robwalch robwalch mentioned this pull request Feb 14, 2023
4 of 5 tasks
@robwalch
robwalch force-pushed the feature/content-steering branch 2 times, most recently from 49a3da3 to 3e578db Compare February 15, 2023 18:55
@robwalch
robwalch force-pushed the feature/content-steering branch from 3e578db to 815f197 Compare February 15, 2023 19:02
@robwalch
robwalch marked this pull request as ready for review February 15, 2023 19:02
@robwalch robwalch linked an issue Feb 15, 2023 that may be closed by this pull request
@robwalch robwalch added this to the 1.4.0 milestone Feb 15, 2023
@robwalch
robwalch force-pushed the feature/content-steering branch from 815f197 to 626d474 Compare February 15, 2023 22:12
@robwalch
robwalch merged commit 766ec37 into master Feb 18, 2023
@robwalch
robwalch deleted the feature/content-steering branch February 18, 2023 20:20
robwalch added a commit that referenced this pull request Feb 21, 2023
robwalch added a commit that referenced this pull request Feb 21, 2023
robwalch added a commit that referenced this pull request Feb 22, 2023
robwalch added a commit that referenced this pull request Feb 22, 2023
akashchamp pushed a commit to akashchamp/hls.js that referenced this pull request Sep 25, 2026
* Load Steering Manifest

* Make UA check lazy for legacy unsupported MP3 in MP4 container check

* Add Redundant Streams tests

* Add FRAME-RATE to Redundant Stream group key and level sorting
Optimize MANIFEST_PARSED level filtering
Optimize Media Playlist check

* Do not group Variant levels with PATHWAY-ID into Fallback Stream URLs (unless building without Content Steering support)
Store and return seperate LevelAttributes per Fallback Stream URL
Align Level audio and text group ids with Fallback Stream URLs (Level._urlId)

* Content Steering Pathway grouping and selection
video-dev#5074

* Support removeLevel and improve capLevelController with level index changes

* Pathway Clone Variants

* Pathway Clone Rendition Groups

* Fix audio track alignment with timescales that differ and smooth switch when attributes do not change

* Always emit LEVEL_SWITCHING on Pathway change to ensure audio and subtitle tracks update as well

* Fix unregister listeners in fps and latency controller

* Unit test clean up

* Update README for Content Steering
akashchamp pushed a commit to akashchamp/hls.js that referenced this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

Add support for Content Steering and Variable Substitution

1 participant