Lura Configuration
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
The MCP platform by Akta Tech LLC. is a feature complete OTT Platform that removes the need for manual configuration of the playback media and allows the configurations to be used with multiple assets.
To configure the Lura Player based on your pre-configured play configuration in MCP, you can use the following attributes in your configuration.
| Attribute | Type | Description |
|---|---|---|
| appKey | string | AppKey generated in MCP based on the pre-adjusted play configuration |
| assetId | string | AssetId of the VOD or the Live Stream |
| token | string | (Optional) When specified the provided token will be used in entitlements requests. |
using Lura;
using Lura.Unified;
using Tizen.NUI;
// Initialize the player
Window window = Window.Instance;
var player = new Player(window);
// Configure using AppKey and AssetId
var config = new Configuration
{
Lura = new LuraConfiguration
{
AppKey = "<YOUR_APP_KEY>",
AssetId = "<ASSET_ID>"
}
};
// Set the configuration
await player.SetConfig(config);
player.Play();
using Lura;
using Lura.Unified;
using Tizen.NUI;
// Initialize the player
Window window = Window.Instance;
var player = new Player(window);
// Configure using token
var config = new Configuration
{
Lura = new LuraConfiguration
{
Token = "<OPTIONAL_TOKEN>"
}
};
// Set the configuration
await player.SetConfig(config);
player.Play();
In addition to the Lura configuration, you can include additional configuration that will be merged with the Play Configuration in the MCP. This can be useful when you need to adjust certain parameters dynamically while keeping others configured through the MCP. For example, you might want to insert client-side ads based on the viewer's subscription plan or device, while still using the analytic credentials specified in the Play Configuration.
using Lura;
using Lura.Unified;
using Tizen.NUI;
// Initialize the player
Window window = Window.Instance;
var player = new Player(window);
// Configure using Lura settings merged with additional configuration
var config = new Configuration
{
Lura = new LuraConfiguration
{
AppKey = "<YOUR_APP_KEY>",
AssetId = "<ASSET_ID>"
},
Controls = new ControlsConfiguration
{
Autoplay = true,
Volume = 1.0f
}
};
// Set the configuration
await player.SetConfig(config);
player.Play();