java.lang.Object | |
↳ | com.smartadserver.android.instreamsdk.adrules.SVSAdRuleData |
Represents the details of an ad rule related to a given ad break type.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static SVSAdRuleData |
createMidrollAdRuleData(int instances, long maxAdPodDuration, double[] percents)
Creates a midroll
SVSAdRuleData | ||||||||||
static SVSAdRuleData |
createMidrollAdRuleData(int instances, long maxAdPodDuration, int offset, int interval)
Creates a midroll
SVSAdRuleData | ||||||||||
static SVSAdRuleData |
createMidrollAdRuleData(int instances, long maxAdPodDuration, String[] timecodes)
Creates a midroll
SVSAdRuleData | ||||||||||
static SVSAdRuleData |
createPostrollAdRuleData(int instances, long maxAdPodDuration)
Creates a postroll
SVSAdRuleData | ||||||||||
static SVSAdRuleData |
createPrerollAdRuleData(int instances, long maxAdPodDuration)
Creates a preroll
SVSAdRuleData | ||||||||||
long[] |
getAbsoluteTimes(long contentDuration)
Returns the absolutes times when the ad break represented
by this rule is triggered
| ||||||||||
int |
getInstances()
Returns the number of ads in this ad break.
| ||||||||||
long |
getInterval()
The time interval between midrolls/overlays.
| ||||||||||
long |
getMaxAdPodDuration()
Returns the maximum duration for this ad break
| ||||||||||
long |
getOffset()
Initial time offset before the first ad in case where interval value is set
| ||||||||||
double[] |
getPercents()
Returns the percents of the content video duration when the ad break represented by this rule is triggered.
| ||||||||||
String[] |
getTimecodes()
Returns the string representations of the times (within content duration) when the ad break represented
by this rule is triggered.
| ||||||||||
SVSAdBreakType |
getType()
Returns the type of this SVSAdRuleData
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a midroll SVSAdRuleData
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. |
Creates a midroll SVSAdRuleData
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. |
Creates a midroll SVSAdRuleData
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 |
Creates a postroll SVSAdRuleData
instances | number of ads in the postroll |
---|---|
maxAdPodDuration | maximum duration of postroll ad pod |
Creates a preroll SVSAdRuleData
instances | number of ads in the preroll |
---|---|
maxAdPodDuration | maximum duration of preroll ad pod |
Returns the absolutes times when the ad break represented by this rule is triggered
contentDuration | the content video duration |
---|
Returns the number of ads in this ad break. 0 if disabled. -1 if the number of ads is defined by the server. n > 0 means n ads
The time interval between midrolls/overlays. Valid only if percents and timecodes are not set Concerns midrolls/overlays only
Returns the maximum duration for this ad break
Initial time offset before the first ad in case where interval value is set
Returns the percents of the content video duration when the ad break represented by this rule is triggered. Valid only if timecodes and interval are not set. Concerns midrolls/overlays only
Returns 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