Files
Álvaro Velad Galván 5e3a246ee9 feat(UI): Disambiguate video tracks with the same role by language (#10307)
Follow-up to #10198: PR #10256 exposed per-stream
audioLanguage/videoLanguage on tracks, but the UI and preference APIs
still treated video tracks as distinguishable by role alone. Manifests
carrying multiple sign-language video tracks under the same 'sign' role
(e.g. American vs. Dutch Sign Language) could not be told apart or
selected individually.

Add language to `shaka.extern.VideoPreference` and filter by it in
`PreferenceBasedCriteria.applyVideoPreferences_`. Fix selectVideoTrack's
matching filter, which compared every video attribute except language.
Update `ResolutionSelection` to filter/dedupe by video language instead
of collapsing same-resolution tracks in different languages, and
VideoTypeSelection to group by (role, language) instead of role alone,
showing the language only when it's needed to disambiguate and omitting
a now-redundant role prefix when every option shares one.

Resolve deprecated 'sgn-XX' BCP-47 tags (not valid ISO 639-3 codes) to
their RFC 5645 replacement, and add a small name table for the
sign-language codes that neither mozilla.LanguageMapping nor
Intl.DisplayNames reliably names.
2026-07-12 10:09:53 -07:00
..
2024-08-20 10:30:05 -07:00