Make Your Own UI
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
If you want to add a custom UI on top of Lura Player, you can add enabled: false parameter to your config,
and Lura Player won't load the default user interface.
Custom UI
using Lura;
using Lura.Unified;
using Tizen.NUI;
// Initialize player
Window window = Window.Instance;
var player = new Player(window);
// Configure with disabled default UI
var config = new Configuration
{
Controls = new ControlsConfiguration
{
Enabled = false
}
};
// Set configuration
await player.SetConfig(config);
// Add event listener
player.AddListener(e =>
{
switch (e.Type)
{
case UnifiedEventName.CONFIGURED:
// Do something when configured
break;
default:
break;
}
})
// Control player programmatically
player.Play();
player.Pause();