Class AdBreak.Builder
- java.lang.Object
-
- com.longtailvideo.jwplayer.media.ads.AdBreak.Builder
-
- Enclosing class:
- AdBreak
public static class AdBreak.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdBreak.Builder
adType(AdType adType)
AdBreak
build()
AdBreak.Builder
customParams(java.util.Map<java.lang.String,java.lang.String> custParams)
AdBreak.Builder
offset(java.lang.String offset)
AdBreak.Builder
source(AdSource adSource)
AdBreak.Builder
tag(java.lang.String... tags)
AdBreak.Builder
tag(java.util.List<java.lang.String> tag)
-
-
-
Method Detail
-
source
public AdBreak.Builder source(AdSource adSource)
- Parameters:
adSource
- The ad source for this ad break -- VAST, IMA, or FW
-
tag
public AdBreak.Builder tag(java.lang.String... tags)
- Parameters:
tags
- The ad tags that are called during the configured ad break.
-
tag
public AdBreak.Builder tag(java.util.List<java.lang.String> tag)
- Parameters:
tag
- The ad tags that are called during the configured ad break.
-
offset
public AdBreak.Builder offset(java.lang.String offset)
- Parameters:
offset
- When to play the configured ad tag. "pre": Ad plays as a preroll "post": Ad plays as a postroll "xx%": Ad plays after xx% of the content number: Ad plays after the specified number of seconds
-
adType
public AdBreak.Builder adType(AdType adType)
- Parameters:
adType
- This should be set to NONLINEAR if you want to force the player to render a nonlinear ad in the ad response.
-
customParams
public AdBreak.Builder customParams(@Nullable java.util.Map<java.lang.String,java.lang.String> custParams)
- Parameters:
custParams
- Allows for passing custom parameters to an ad break, which then pass through to the URL requested from the ad server.
-
build
public AdBreak build()
-
-