Skip to content

fix(SUP-51711): Audio Description Language selection not working as expected in some browsers - #875

Merged
SivanA-Kaltura merged 2 commits into
masterfrom
sup-51711
May 4, 2026
Merged

fix(SUP-51711): Audio Description Language selection not working as expected in some browsers#875
SivanA-Kaltura merged 2 commits into
masterfrom
sup-51711

Conversation

@SivanA-Kaltura

@SivanA-Kaltura SivanA-Kaltura commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Description of the Changes

Use label to compare audio flavor and track, fallback to flavorId if label comparison fails.
This is needed because dash provides us limited information for comparison.

Related PR:
kaltura/playkit-js-dash#271

Resolves SUP-51711

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@SivanA-Kaltura SivanA-Kaltura changed the title Sup 51711 fix(SUP-51711): Audio Description Language selection not working as expected in some browsers Apr 30, 2026
@SivanA-Kaltura
SivanA-Kaltura requested a review from Copilot April 30, 2026 10:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes audio description language selection in cases where DASH metadata doesn’t provide enough information to reliably match audio tracks to flavors across browsers, by matching on label first and falling back to flavorId.

Changes:

  • Update audioDescriptionTrackHandler to match audio flavors by label first, then fall back to flavorId when label matching fails.
  • Add E2E test coverage for label-first matching, flavorId fallback behavior, and precedence rules.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/track/audio-track.ts Adjusts audio flavor matching logic to be label-first with a flavorId fallback to correctly detect audio description tracks.
tests/e2e/track/audio-track-description.spec.js Adds test cases validating label vs flavorId matching precedence and expected audio description labeling outcomes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

SivanA-Kaltura added a commit to kaltura/playkit-js-dash that referenced this pull request May 4, 2026
…xpected in some browsers (#271)

### Description of the Changes

- Allow audio tracks with the same language.
- Compute a stable audio track id without relying on getVariantTracks.
- Use shaka getAudioTracks API to prepare for shaka v5 (where
getVariantTracks and getAudioLanguagesAndRoles will be removed).

Related PR:
kaltura/playkit-js#875

Resolves [SUP-51711](https://kaltura.atlassian.net/browse/SUP-51711)


[SUP-51711]:
https://kaltura.atlassian.net/browse/SUP-51711?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@SivanA-Kaltura
SivanA-Kaltura merged commit c1fa48d into master May 4, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants