Skip to main content

FlowerAdConfig

Ad config classes used for Flower Player classes.

FlowerLinearTvAdConfig​

Class used to specify information required for ad insertion in live broadcasts.

constructor​

The following describes the constructor parameters:

ParameterTypeDescription
adTagUrlStringAd tag URL issued by Flower backend system.
You must file a request to Anypoint Media to receive a adTagUrl.
prerollAdTagUrlString?(Optional) Pre-roll ad tag URL issued by Flower backend system.
You must file a request to Anypoint Media to receive a prerollAdTagUrl.
channelIdStringUnique channel ID.
Must be registered in Flower backend system.
extraParamsMap<String, String>(Optional) Additional information pre-agreed for targeting.
adTagHeadersMap<String, String>(Optional) HTTP header information to add for ad requests.
channelStreamHeadersMap<String, String>(Optional) HTTP header information to add for original stream requests.

FlowerVodAdConfig​

Class used to specify information required for ad insertion in VOD contents.

constructor​

The following describes the constructor parameters:

ParameterTypeDescription
adTagUrlStringAd tag URL issued by Flower backend system.
You must file a request to Anypoint Media to receive a adTagUrl.
contentIdStringUnique content ID.
Must be registered in Flower backend system.
contentDurationLongDuration of VOD content in milliseconds.
requestTimeoutLong(Optional) Minimum timeout duration in milliseconds for requesting VOD ads.
Default is 5000.
minPrepareDurationLong(Optional) Preparation lead time in milliseconds. A mid-roll ad is requested requestTimeout + minPrepareDuration before the mid-roll's position, and onPrepare is called when the content reaches that position.
Default is 5000.
rewindDurationLong(Optional) Duration in milliseconds to rewind the content when a mid-roll ad break ends. The content resumes this much earlier than the point where it was interrupted. Rewinding does not make the same mid-roll play again.
Default is 5000.
extraParamsMap<String, String>(Optional) Additional information pre-agreed for targeting.
adTagHeadersMap<String, String>(Optional) HTTP header information to add for ad requests.