AdBreakClipInfo.Builder

public static classAdBreakClipInfo.BuilderextendsObject

A builder forAdBreakClipInfo.

Public Constructor Summary

Public Method Summary

AdBreakClipInfo
AdBreakClipInfo.Builder
setClickThroughUrl(String clickThroughUrl)
Sets this clip's click through URL.
AdBreakClipInfo.Builder
setContentId(StringcontentId)
Sets this clip's content ID.
AdBreakClipInfo.Builder
setContentUrl(StringcontentUrl)
Sets this clip's content URL.
AdBreakClipInfo.Builder
setCustomDataJsonString(String customDataJsonString)
Sets this clip's custom data as a string.
AdBreakClipInfo.Builder
setDurationInMs(long durationInMs)
Sets this clip's duration in milliseconds.
AdBreakClipInfo.Builder
setHlsSegmentFormat(String hlsSegmentFormat)
SetsHlsSegmentFormat of the ad break clip, or emptyStringif not set.
AdBreakClipInfo.Builder
setImageUrl(StringimageUrl)
Sets this clip's image URL.
AdBreakClipInfo.Builder
setMimeType(StringmimeType)
Sets this clip's mime type.
AdBreakClipInfo.Builder
setTitle(Stringtitle)
Sets this clip's title.
AdBreakClipInfo.Builder
setVastAdsRequest(VastAdsRequest vastAdsRequest)
Sets theVastAdsRequest 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)

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 emptyStringif 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_SKIPPABLEmeans that current break clip is not skippable.