ISO 3 support or better fallback for language switcher in UI
See original GitHub issueHave 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:
- Created 5 years ago
- Comments:17 (9 by maintainers)

Top Related StackOverflow Question
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”.
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.