Trick Play 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
Trick play images are a compilation of cropped images extracted from various frames of a video, serving as visual cues for viewers to quickly navigate to desired locations within the video. These images enable users to efficiently scan, select, and explore the video content, enhancing their overall viewing experience.
To configure the trick play image of a video in Lura Player, you can use the following configuration.
| Attribute | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Trick play URL of the content. |
| type | string | yes | MIME type of the content. |
| width | int | no | Width of the content (not required for single trick play image) |
| height | int | no | Height of the content (not required for single trick play image) |
Note that width and height are optional parameters that only needs to be passed when there are multiple trick play images. Lura Player will adaptively select the trick play image that is closest to the window width and scale accordingly. With Lura Player's adaptive trick play image selection, you can optimize your video content delivery, reduce bandwidth consumption, and provide a superior viewing experience for your customers.
Here are the supported MIME types:
- image/bif
using Lura;
using Lura.Unified;
using Tizen.NUI;
// Initialize player
Window window = Window.Instance;
var player = new Player(window);
// Configure with single trick play image
var config = new Configuration
{
Content = new ContentConfiguration
{
Media = new List<ContentMedia>
{
new ContentMedia
{
Url = "https://example.com/pvw.bif",
Type = PosterMimeType.Bif
}
}
}
};
// Set configuration
await player.SetConfig(config);
player.Play();
using Lura;
using Lura.Unified;
using Tizen.NUI;
// Initialize player
Window window = Window.Instance;
var player = new Player(window);
// Configure with multiple trick play images for adaptive selection
var config = new Configuration
{
Content = new ContentConfiguration
{
Media = new List<ContentMedia>
{
new ContentMedia
{
Url = "https://example.com/pvw.bif",
Type = PosterMimeType.Bif,
Width = 640,
Height = 360
},
new ContentMedia
{
Url = "https://example.com/pvw2.bif",
Type = PosterMimeType.Bif,
Width = 1920,
Height = 1080
}
}
}
};
// Set configuration
await player.SetConfig(config);
player.Play();