Skip to main content

FlowerAdConfig

Ad config classes that 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) Minimum wait time in milliseconds from the onPrepare event until ad playback starts.
Default is 5000.
rewindDurationLong(Optional) Duration in milliseconds to rewind the content when ad break ends.
Default is 3000.
extraParamsMap<String, String>(Optional) Additional information pre-agreed for targeting.
adTagHeadersMap<String, String>(Optional) HTTP header information to add for ad requests.