Non Linear Ads
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
Non linear pause ads display an ad overlay inside the player when playback is paused.
Configure pause ads under Ads.NonLinear.Pause.
Pause Ads
| Attribute | Type | Required | Description |
|---|---|---|---|
| Provider | string | no | Provider of the pause ad configuration. |
| Generic | NonLinearPauseGenericConfiguration | no | Generic non linear pause ad configuration. |
| Generic.Url | string | no | URL for the VAST tag that includes non linear ads. |
| Generic.XPosition | "left" | "center" | "right" | no | Horizontal position of the non linear ad display area. |
| Generic.YPosition | "top" | "center" | "bottom" | no | Vertical position of the non linear ad display area. |
| Generic.BackgroundOpacity | double | no | Background opacity of the ad display area. |
| Generic.SlideAnimation | NonLinearSlideAnimationConfiguration | no | Slide animation configuration for the non linear ad. |
| Generic.SlideAnimation.Enabled | bool | no | Whether slide animation is enabled. |
| Generic.SlideAnimation.Direction | "left" | "right" | "up" | "down" | no | Slide animation direction. |
| Generic.SlideAnimation.Duration | double | no | Slide animation duration in seconds. |
| Generic.Padding | NonLinearPaddingConfiguration | no | Padding around the non linear ad display area. |
| Generic.Padding.Top | string | no | Top padding in accepted units. |
| Generic.Padding.Bottom | string | no | Bottom padding in accepted units. |
| Generic.Padding.Left | string | no | Left padding in accepted units. |
| Generic.Padding.Right | string | no | Right padding in accepted units. |
var config = new Configuration
{
Ads = new AdsConfiguration
{
NonLinear = new NonLinearConfiguration
{
Pause = new NonLinearPauseConfiguration
{
Provider = "generic",
Generic = new NonLinearPauseGenericConfiguration
{
Url = "VAST_AD_TAG_URL_WITH_NON_LINEAR_ADS",
XPosition = "right",
YPosition = "center",
BackgroundOpacity = 0.6,
SlideAnimation = new NonLinearSlideAnimationConfiguration
{
Enabled = true,
Direction = "left",
Duration = 0.6
},
Padding = new NonLinearPaddingConfiguration
{
Right = "5%"
}
}
}
}
}
};
player.SetConfig(config);
The cooldown between pause ad displays is controlled by Ads.Policy.PauseAdCooldown.