AdPeriodInfo

interface AdPeriodInfo


An ad period is a group of ads and slates that play at a specific time in the stream. This object contains information about the ad period.

Summary

Public functions

Double

Returns the duration of the ads in this ad period in seconds.

Double

Returns the duration of the slate that may be present in this ad period in seconds.

Int

Returns the total number of ads (excluding slate) in this ad period.

Double

Returns the total duration of the ad period in seconds.

Public functions

getAdsDuration

fun getAdsDuration(): Double

Returns the duration of the ads in this ad period in seconds.

getSlateDuration

fun getSlateDuration(): Double

Returns the duration of the slate that may be present in this ad period in seconds.

getTotalAds

fun getTotalAds(): Int

Returns the total number of ads (excluding slate) in this ad period.

getTotalDuration

fun getTotalDuration(): Double

Returns the total duration of the ad period in seconds.