-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
format.language returns und for unknown locales #6153
Labels
Comments
This comment has been minimized.
This comment has been minimized.
@tonihei - IIRC you looked at language tag normalization recently. Could you take a look at this (it sounds OS version or device specific, but we have some Xperia Z devices to test on). |
ojw28
pushed a commit
that referenced
this issue
Jul 18, 2019
1. Using the Locale on API<21 doesn't make any sense because it's a no-op anyway. Slightly restructured the code to avoid that. 2. API<21 often reports languages with non-standard underscores instead of dashes. Normalize that too. 3. Some invalid language tags on API>21 get normalized to "und". Use original tag in such a case. Issue:#6153 PiperOrigin-RevId: 258773463
Problem was fixed by the commit above. |
ojw28
pushed a commit
that referenced
this issue
Jul 28, 2019
1. Using the Locale on API<21 doesn't make any sense because it's a no-op anyway. Slightly restructured the code to avoid that. 2. API<21 often reports languages with non-standard underscores instead of dashes. Normalize that too. 3. Some invalid language tags on API>21 get normalized to "und". Use original tag in such a case. Issue:#6153 PiperOrigin-RevId: 258773463
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue description
format.language
returns "und" for unknown locales on Sony C6603, but on other devices at the same caseformat.language
returns original value from "lang" attribute.Reproduction steps
Parse Dash manifest where
AdaptationSet
tag have "lang" attribute with "hello" valueLink to test content
I have no public link
Version of ExoPlayer being used
2.10.1
Device(s) and version(s) of Android being used
Sony C6603 (android 5.1.1)
The text was updated successfully, but these errors were encountered: