question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ISO 3 support or better fallback for language switcher in UI

See original GitHub issue

Have you read the FAQ and checked for duplicate open issues?: Yes

What version of Shaka Player are you using?: Latest

Can you reproduce the issue with our latest release version?: With shaka player UI

Can you reproduce the issue with the latest code from master?: Yes

Are you using the demo app or your own custom app?: Shake Player UI. So not the real demo, but an unmodified version of the shaka player ui demo.

If custom app, can you reproduce the issue using our demo app?:

What browser and OS are you using?: Safari/Chome

What are the manifest and license server URIs?:

What did you do? Added a language code to m3u8 file (ie. abr) only available in ISO 3.

What did you expect to happen? Ideally, the player displays the language name in English. Alternatively, it falls back to the ISO 3 code.

What actually happened? Shaka Player pops up text ‘Unknown’ in language switcher as it’s not available in ISO2.

I’m going to have a large number of languages not available in ISO2, so I’ll have a massive list of “unknown” languages with no way to distinguish between them.

Even if it just displays the ISO3 code as a fallback, it allows users to make the proper selection.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
joeyparrishcommented, Jan 9, 2019

Okay, sounds good. I’ll file a separate issue to extract that info from HLS and use it when possible. In the mean time, we can at least improve the fallback and add the language code itself to the UI.

And I’ll take your suggestion on switching the place of the code and “Unknown”.

0reactions
joeyparrishcommented, Jan 9, 2019

I’m going to avoid a special case and just stick with “Unknown (arb)”. There is also no sorting. It’s the order of the streams in the manifest, so the content provider has some influence over the order.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ISO 3 support or better fallback for language switcher in UI
Ideally, the player displays the language name in English. Alternatively, it falls back to the ISO 3 code. What actually happened? Shaka Player ......
Read more >
Designing A Perfect Language Selector UX
Also, the interface always allows users to fall back to the English language if they've accidentally made a mistake. Which option is better?...
Read more >
DISM Languages and International Servicing Command-Line ...
There are three types of international servicing commands: ... Sets the fallback default language for the system UI in the offline Windows ...
Read more >
In Platform Language Support Guide - ServiceNow
Essentially a "Language Pack" is a plugin / package of all of the OOtB UI translations in that given language.
Read more >
Spring MVC: Fallback for unknown language code in uri ...
Im trying to build my first Spring MVC 4 app with i18n support and was thinking how i can use a default ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found