Skip to content

Conversation

@Janet101
Copy link

@Janet101 Janet101 commented Oct 16, 2025

Description

This PR adds support for parsing the qualityRanking attribute from DASH MPD manifests and mapping it to the HLS SCORE attribute for video.js compatibility.

The qualityRanking attribute specifies the quality ranking of a representation relative to others in the same adaptation set. Higher values represent lower quality content. This is mapped to HLS's SCORE attribute, which serves the same purpose and allows video players to make more informed decisions about quality selection beyond just bandwidth considerations.

Example

<Representation id="high" bandwidth="2000000" qualityranking="10">
  ...
</Representation>

Output (HLS playlist attributes):

{
  NAME: 'high',
  BANDWIDTH: 2000000,
  SCORE: 1/10,
  ...
}

Test Results

All tests pass successfully:

  • ✅ 196 tests passing (0 failures)
  • ✅ 100% coverage on parseAttributes.js
  • ✅ Overall coverage: 96.64% statements, 89.46% branches

@Janet101 Janet101 changed the title Support quality ranking Add support for qualityRanking attribute in DASH manifests Oct 16, 2025
@Janet101 Janet101 marked this pull request as ready for review October 17, 2025 00:52
@Janet101
Copy link
Author

Janet101 commented Oct 17, 2025

Hi @gesinger @brandonocasey @gkatsev @forbesjo , hope you’re doing well 😄! This is my first contribution to the repo, would you mind taking a look when you have some time?
I’d really appreciate your feedback!

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.

1 participant