createMidrollAdRuleData

open fun createMidrollAdRuleData(instances: Int, maxAdPodDuration: Long, @Nullable percents: Array<Double>): SVSAdRuleData

Creates a midroll SVSAdRuleData

Parameters

instances

number of ads in the midroll

maxAdPodDuration

maximum duration of midroll ad pod

percents

the percents of the content video duration when the ad break represented by this rule is triggered.


open fun createMidrollAdRuleData(instances: Int, maxAdPodDuration: Long, @Nullable timecodes: Array<String>): SVSAdRuleData

Creates a midroll SVSAdRuleData

Parameters

instances

number of ads in the midroll

maxAdPodDuration

maximum duration of midroll ad pod

timecodes

The string representations of the times (within content duration) when the ad break represented by this rule is triggered


open fun createMidrollAdRuleData(instances: Int, maxAdPodDuration: Long, offset: Int, interval: Int): SVSAdRuleData

Creates a midroll SVSAdRuleData

Parameters

instances

number of ads in the midroll

maxAdPodDuration

maximum duration of midroll ad pod

offset

initial time offset (in milliseconds) before the first midroll/overlay ad

interval

the time interval (in milliseconds) between midrolls/overlays.