Skip to content
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

feat: add originalLanguage to the Track #5409

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

tykus160
Copy link
Member

Shaka in most of places normalizes tracks' language code to be compliant with ISO 639-1 when possible. However, it does not do that all the time (i.e. normalization is missing in MSS parser) and there is no way to get value that has been explicitly set in a manifest. Moreover, documentation is misleading, as it claims that value is taken directly from a manifest.
Normalization should take place, specifically to easify PeriodCombiner algorithm and also to not break existing applications.
However, original value can be desired for some implementations.
This PR introduces new field to get original language value from the manifest.

@github-actions
Copy link
Contributor

Incremental code coverage: 100.00%

externs/shaka/offline.js Outdated Show resolved Hide resolved
@theodab theodab merged commit f53349f into shaka-project:main Jul 18, 2023
@theodab
Copy link
Contributor

theodab commented Jul 18, 2023

Thanks for the contribution.

@tykus160 tykus160 deleted the wt-lang-codes-contrib branch July 18, 2023 09:12
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Sep 16, 2023
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Sep 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants