Skip to main content

Concurrency 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

Playback concurrency allows Lura Player to identify a viewer session and enforce the maximum number of concurrent playback sessions allowed for an account. This feature requires Akta Cloud.

To enable concurrency handling, add the concurrency configuration to your player configuration.

AttributeTypeDescription
enabledboolWhether concurrency handling is enabled.
accountIdstringAccount identifier used for concurrency checks.
deviceIdstringDevice identifier used for concurrency checks.
maxintMaximum number of allowed concurrent playback sessions.
Concurrency Configuration
using Lura;
using Lura.Unified;
using Tizen.NUI;

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

// Configure playback concurrency
var config = new Configuration
{
Lura = new LuraConfiguration
{
AppKey = "<YOUR_APP_KEY>",
AssetId = "<ASSET_ID>"
},
Concurrency = new ConcurrencyConfiguration
{
Enabled = true,
AccountId = "<ACCOUNT_ID>",
DeviceId = "<DEVICE_ID>",
Max = 2
}
};

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

When the concurrency limit is reached, playback is blocked and the player emits the CONCURRENCY_LIMIT_REACHED error with code 1901.