Adding a Language
info
As of 2023, Samsung states that Tizen TV's are not optimized for .NET applications. Samsung strongly recommends using JS/Web applications instead of C#/.NET applications for TVs. Please check the Lura Player Web SDK
You can specify the 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.
Language Configuration
using Lura;
using Lura.Unified;
using Tizen.NUI;
// Initialize player
Window window = Window.Instance;
var player = new Player(window);
// Configure with fallback language
var config = new Configuration
{
Content = new ContentConfiguration
{
Media = new List<ContentMedia>(),
Language = "en"
}
};
// Set configuration
await player.SetConfig(config);
player.Play();