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:
| Parameter | Type | Description |
|---|---|---|
| adTagUrl | String | Ad tag URL issued by Flower backend system. You must file a request to Anypoint Media to receive a adTagUrl. |
| prerollAdTagUrl | String? | (Optional) Pre-roll ad tag URL issued by Flower backend system. You must file a request to Anypoint Media to receive a prerollAdTagUrl. |
| channelId | String | Unique channel ID. Must be registered in Flower backend system. |
| extraParams | Map<String, String> | (Optional) Additional information pre-agreed for targeting. |
| adTagHeaders | Map<String, String> | (Optional) HTTP header information to add for ad requests. |
| channelStreamHeaders | Map<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:
| Parameter | Type | Description |
|---|---|---|
| adTagUrl | String | Ad tag URL issued by Flower backend system. You must file a request to Anypoint Media to receive a adTagUrl. |
| contentId | String | Unique content ID. Must be registered in Flower backend system. |
| contentDuration | Long | Duration of VOD content in milliseconds. |
| requestTimeout | Long | (Optional) Minimum timeout duration in milliseconds for requesting VOD ads. Default is 5000. |
| minPrepareDuration | Long | (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. |
| rewindDuration | Long | (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. |
| extraParams | Map<String, String> | (Optional) Additional information pre-agreed for targeting. |
| adTagHeaders | Map<String, String> | (Optional) HTTP header information to add for ad requests. |