Adding a Fallback Language
If your manifest doesn't include language data, you can specify the fallback language of the content with the following parameter:
Attribute | Type | Required | Description |
---|---|---|---|
language | String | no | Language of the content in ISO 639-1 format |
This attribute will make sure the assets that doesn't have a language information are registered with the registered language parameter.
val luraConfiguration = LuraConfiguration(
...
content = LuraContent(
media = listOf(
...
),
language = "en",
...
),
...
)
playerView = findViewById(R.id.lura_player_view)
player = LuraPlayer(context = this, playerView = playerView)
player.setConfig(luraConfiguration)