Skip to main content

Initialization Configuration

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

During initialization, parameters such as autoplay, volume, and muted attributes can be configured. However, it is also possible to modify the volume and muted attributes at a later time, as per requirements.

Autoplay Configuration

The implementation of autoplay attribute can be done in Lura Player using the following configuration.

AttributeTypeDescription
autoplayboolAutoplay attribute of the player. Defaults to false
Autoplay Example
using Lura;
using Lura.Unified;
using Tizen.NUI;

// Initialize player
Window window = Window.Instance;
var player = new Player(window);

// Configure with autoplay enabled
var config = new Configuration
{
Controls = new ControlsConfiguration
{
Autoplay = true
}
};

// Set configuration
await player.SetConfig(config);
player.Play();

Mute Configuration

The implementation of initially muted attribute can be done in Lura Player using the following configuration.

AttributeTypeDescription
mutedboolWhether to start muted when the player autoplays. Defaults to false.
info

Some platforms doesn't support unmuted autoplay. So if autoplay attribute is set to true, muted attribute will be overwritten to true in platforms that doesn't support unmuted autoplay.

Mute Example
using Lura;
using Lura.Unified;
using Tizen.NUI;

// Initialize player
Window window = Window.Instance;
var player = new Player(window);

// Configure with muted enabled
var config = new Configuration
{
Controls = new ControlsConfiguration
{
Muted = true
}
};

// Set configuration
await player.SetConfig(config);
player.Play();

Volume Configuration

The implementation of initial volume attribute can be done in Lura Player using the following configuration.

AttributeTypeDescription
volumefloatInitial volume of the player between 0.0 and 1.0. Defaults to 1.0
Volume Example
using Lura;
using Lura.Unified;
using Tizen.NUI;

// Initialize player
Window window = Window.Instance;
var player = new Player(window);

// Configure with volume
var config = new Configuration
{
Controls = new ControlsConfiguration
{
Volume = 1.0f
}
};

// Set configuration
await player.SetConfig(config);
player.Play();
Combined Example
using Lura;
using Lura.Unified;
using Tizen.NUI;

// Initialize player
Window window = Window.Instance;
var player = new Player(window);

// Configure with autoplay, muted, and volume
var config = new Configuration
{
Controls = new ControlsConfiguration
{
Autoplay = true,
Muted = true,
Volume = 1.0f
}
};

// Set configuration
await player.SetConfig(config);
player.Play();