AdBreakClipInfo.Builder

public static class AdBreakClipInfo.Builder extends Object

A builder for AdBreakClipInfo.

Public Constructor Summary

Public Method Summary

AdBreakClipInfo
AdBreakClipInfo.Builder
setClickThroughUrl(String clickThroughUrl)
Sets this clip's click through URL.
AdBreakClipInfo.Builder
setContentId(String contentId)
Sets this clip's content ID.
AdBreakClipInfo.Builder
setContentUrl(String contentUrl)
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)
Sets HlsSegmentFormat of the ad break clip, or empty String if not set.
AdBreakClipInfo.Builder
setImageUrl(String imageUrl)
Sets this clip's image URL.
AdBreakClipInfo.Builder
setMimeType(String mimeType)
Sets this clip's mime type.
AdBreakClipInfo.Builder
setTitle(String title)
Sets this clip's title.
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

public Builder (String id)

Parameters
id The ad clip's ID, referenced by AdBreakInfo

Public Methods

public AdBreakClipInfo build ()

public AdBreakClipInfo.Builder setClickThroughUrl (String clickThroughUrl)

Sets this clip's click through URL.

public AdBreakClipInfo.Builder setContentId (String contentId)

Sets this clip's content ID. Typically the URL of the break clip (playing on the receiver).

public AdBreakClipInfo.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.

public AdBreakClipInfo.Builder setCustomDataJsonString (String customDataJsonString)

Sets this clip's custom data as a string.

public AdBreakClipInfo.Builder setDurationInMs (long durationInMs)

Sets this clip's duration in milliseconds.

public AdBreakClipInfo.Builder setHlsSegmentFormat (String hlsSegmentFormat)

Sets HlsSegmentFormat of the ad break clip, or empty String if not set.

public AdBreakClipInfo.Builder setImageUrl (String imageUrl)

Sets this clip's image URL.

public AdBreakClipInfo.Builder setMimeType (String mimeType)

Sets this clip's mime type.

public AdBreakClipInfo.Builder setTitle (String title)

Sets this clip's title.

public AdBreakClipInfo.Builder setVastAdsRequest (VastAdsRequest vastAdsRequest)

Sets the VastAdsRequest of a VAST ad break clip, representing the VAST ad request configuration. Only set this if not loading an ad through AdBreakClipInfo.getContentId() or AdBreakClipInfo.getContentUrl().

When the VAST ad is loaded from the server, the information from the VAST ad will override all other attributes of AdBreakClipInfo, aside from AdBreakClipInfo.getId().

public AdBreakClipInfo.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.