Replies: 2 comments
-
@riksagar I think @stschr can provide more details here, but we stick to what the 6th edition of the DASH specification says on the
|
Beta Was this translation helpful? Give feedback.
-
Hi @riksagar , For normalizing variations of language tags, we rely on an external library: https://www.npmjs.com/package/bcp-47-normalize For robust operation we normalize both, user-provided and signaling in the MPD prior comparison. Does this normalization cause any problems for you? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I notice with DASH-JS v5 that there's a language matcher than normalizes
lang=...
attributes.In our UI we try to differentiate things like
pt-br
andpt-pt
so we can preserve the users preference/selection.While trying to migrate to v5 recently, I found that
en-us
was getting converted toen
andpt-br
becamept
. However,es-mx
got converted toes-MX
.I'm a bit confused. Why did "mx" get capitaized, while "us" and "br" got dropped completely?
Is there a move here to normalize to two character codes?
The PR here - #4036 - suggests the goal is to replace three character codes.
Ironically, ExoPlayer has a library that converts everything to 3 character codes 😕 (or at least it did last time I checked).
Regards,
Rik.
Beta Was this translation helpful? Give feedback.
All reactions