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).
Link copied to clipboard
The maximum duration for this ad break.
Link copied to clipboard
open val offset: Long
Initial time offset before the first ad in case where interval value is set (in milliseconds).
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.
Link copied to clipboard
The ad break type of this SVSAdRuleData.

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