Filters Dash adaptation sets by preferred language using BCP 47 relatedness matching.
Strategy:
Collect all unique languages from adaptation sets that have a lang attribute.
Find the best matching language using relatedness scoring.
If a match is found, keep only adaptation sets whose language matches at the same
relatedness level (or better), plus any adaptation sets without a language tag.
If no match is found (all languages are unrelated), return the manifest unchanged.
Never filters to an unplayable state — if filtering would remove all adaptation sets
in any period, the manifest is returned unchanged.
Filters Dash adaptation sets by preferred language using BCP 47 relatedness matching.
Strategy:
langattribute.