A builder forAdBreakClipInfo
.
Public Constructor Summary
Public Method Summary
AdBreakClipInfo |
build()
|
AdBreakClipInfo.Builder | |
AdBreakClipInfo.Builder | |
AdBreakClipInfo.Builder | |
AdBreakClipInfo.Builder | |
AdBreakClipInfo.Builder |
setDurationInMs(long durationInMs)
Sets this clip's duration in milliseconds.
|
AdBreakClipInfo.Builder |
setHlsSegmentFormat(String
hlsSegmentFormat)
Sets
HlsSegmentFormat
of the ad break clip, or emptyString if not set.
|
AdBreakClipInfo.Builder | |
AdBreakClipInfo.Builder | |
AdBreakClipInfo.Builder | |
AdBreakClipInfo.Builder |
setVastAdsRequest(VastAdsRequest
vastAdsRequest)
Sets the
VastAdsRequest
of a VAST ad break clip, representing the VAST ad request configuration.
|
AdBreakClipInfo.Builder |
setWhenSkippableInMs(long whenSkippableInMs)
Sets the time in milliseconds when this break clip becomes skippable.
|
Inherited Method Summary
Public Constructors
publicBuilder(Stringid)
Construct aAdBreakClipInfo.Builder
.
Parameters
id | The ad clip's ID, referenced byAdBreakInfo |
---|
Public Methods
publicAdBreakClipInfo build()
publicAdBreakClipInfo.Builder setClickThroughUrl(String clickThroughUrl)
Sets this clip's click through URL.
publicAdBreakClipInfo.Builder setContentId(StringcontentId)
Sets this clip's content ID. Typically the URL of the break clip (playing on the receiver).
publicAdBreakClipInfo.Builder setContentUrl(String contentUrl)
Sets this clip's content URL. If contentUrl is provided, the receiver will use it as the content's URL, otherwise contentId will be used to load the clip on the receiver.
publicAdBreakClipInfo.Builder setCustomDataJsonString(String customDataJsonString)
Sets this clip's custom data as a string.
publicAdBreakClipInfo.Builder setDurationInMs(long durationInMs)
Sets this clip's duration in milliseconds.
publicAdBreakClipInfo.Builder setHlsSegmentFormat(String hlsSegmentFormat)
SetsHlsSegmentFormat
of the ad break clip, or emptyString
if not set.
publicAdBreakClipInfo.Builder setImageUrl(StringimageUrl)
Sets this clip's image URL.
publicAdBreakClipInfo.Builder setMimeType(StringmimeType)
Sets this clip's mime type.
publicAdBreakClipInfo.Builder setTitle(Stringtitle)
Sets this clip's title.
publicAdBreakClipInfo.Builder setVastAdsRequest(VastAdsRequest vastAdsRequest)
Sets theVastAdsRequest
of a VAST ad break clip, representing the VAST ad request configuration. Only set this
if not loading an ad throughAdBreakClipInfo.getContentId()
orAdBreakClipInfo.getContentUrl()
.
When the VAST ad is loaded from the server, the information from the VAST ad will
override all other attributes ofAdBreakClipInfo
,
aside fromAdBreakClipInfo.getId()
.
publicAdBreakClipInfo.Builder setWhenSkippableInMs(long whenSkippableInMs)
Sets the time in milliseconds when this break clip becomes skippable. a value of
5000 means that end user can skip this break clip after 5 seconds. A value of
AD_BREAK_CLIP_NOT_SKIPPABLE
means that current break clip is not
skippable.