Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0c411418 authored by Patrik2 Carlsson's avatar Patrik2 Carlsson Committed by Takahiro Aizawa
Browse files

Read track language information from Matroska files

Add track language as kKeyMediaLanguage to support user selection
of audio and subtitle tracks based on language.

According to the Matroska standard language codes can be either
the 3 letters bibliographic ISO-639-2 form (like "fre" for french),
or a language code mixed with a country code for specialities in
languages (like "fre-ca" for canadian french).
Android can only return a language code in ISO-639-1 or ISO-639-2
so any country code is truncated away by this patch.

Bug: 67665876
Test: check language info in multiple audio track matroska file

Change-Id: I6b95bbcb4d3f99b87ea01a22849ba2560a85829a
parent 16f2c155
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment