Skip to content

feat capability to match lang regex for initial settings

Created by: valotvince

Why

We can set a specific initial lang but in some cases (legacy manifest cases), a same audio track could be identified by two different langs. In our case, our legacy manifests use fr or vf lang where our newest manifests use lv which stands for local version.

On the player side, the goal is to always start with the local language version (even if the user has changed it on a previous video).

How

This PR adds the capability to match the lang which a regex, in our case /fr|vf|lv/.

That change doesn't introduce a BC on the API, we can still use a classic string to match.

  • Documentation
  • Tests

Merge request reports