SVSAdRuleData

Represents the details of an ad rule related to a given ad break type.

Properties

Link copied to clipboard
open val instances: Int
the number of ads in this ad break.
Link copied to clipboard
open val interval: Long
The time interval between midrolls/overlays in milliseconds Valid only if percents and timecodes are not set Concerns midrolls/overlays only
Link copied to clipboard
Link copied to clipboard
open val offset: Long
Initial time offset (in milliseconds) before the first ad in case where interval value is set
Link copied to clipboard
The percents of the content video duration when the ad break represented by this rule is triggered.
Link copied to clipboard
The string representations of the times (within content duration) when the ad break represented by this rule is triggered Valid only if percents and interval are not set Concerns midrolls/overlays only
Link copied to clipboard

Functions

Link copied to clipboard
open fun createMidrollAdRuleData(instances: Int, maxAdPodDuration: Long, @Nullable percents: Array<Double>): SVSAdRuleData
open fun createMidrollAdRuleData(instances: Int, maxAdPodDuration: Long, @Nullable timecodes: Array<String>): SVSAdRuleData
open fun createMidrollAdRuleData(instances: Int, maxAdPodDuration: Long, offset: Int, interval: Int): SVSAdRuleData
Creates a midroll SVSAdRuleData
Link copied to clipboard
open fun createPostrollAdRuleData(instances: Int, maxAdPodDuration: Long): SVSAdRuleData
Creates a postroll SVSAdRuleData
Link copied to clipboard
open fun createPrerollAdRuleData(instances: Int, maxAdPodDuration: Long): SVSAdRuleData
Creates a preroll SVSAdRuleData
Link copied to clipboard
open fun getAbsoluteTimes(contentDuration: Long): Array<Long>
Returns the absolutes times when the ad break represented by this rule is triggered