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.

const config = {
...
content: {
media: [
...
],
language: "en"
}
...
};
const player = new lura.Player();
player.setConfig(config);