Skip to main content

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:

AttributeTypeRequiredDescription
languageStringnoLanguage 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)