Skip to main content

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

AttributeTypeRequiredDescription
ProviderstringnoProvider of the pause ad configuration.
GenericNonLinearPauseGenericConfigurationnoGeneric non linear pause ad configuration.
Generic.UrlstringnoURL for the VAST tag that includes non linear ads.
Generic.XPosition"left" | "center" | "right"noHorizontal position of the non linear ad display area.
Generic.YPosition"top" | "center" | "bottom"noVertical position of the non linear ad display area.
Generic.BackgroundOpacitydoublenoBackground opacity of the ad display area.
Generic.SlideAnimationNonLinearSlideAnimationConfigurationnoSlide animation configuration for the non linear ad.
Generic.SlideAnimation.EnabledboolnoWhether slide animation is enabled.
Generic.SlideAnimation.Direction"left" | "right" | "up" | "down"noSlide animation direction.
Generic.SlideAnimation.DurationdoublenoSlide animation duration in seconds.
Generic.PaddingNonLinearPaddingConfigurationnoPadding around the non linear ad display area.
Generic.Padding.TopstringnoTop padding in accepted units.
Generic.Padding.BottomstringnoBottom padding in accepted units.
Generic.Padding.LeftstringnoLeft padding in accepted units.
Generic.Padding.RightstringnoRight 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.