AdProgressInfo

public interface AdProgressInfo


Represents the progress within this ad break.

Summary

Public methods

abstract double

Returns total ad break duration (in seconds).

abstract double

Returns total ad period duration (in seconds).

abstract int

Returns the position of current ad within the ad break, starting with 1.

abstract double

Returns current time within the ad (in seconds).

abstract double

Returns duration of current ad (in seconds).

abstract int

Returns the total number of ads in this ad break.

Public methods

getAdBreakDuration

abstract double getAdBreakDuration()

Returns total ad break duration (in seconds).

getAdPeriodDuration

abstract double getAdPeriodDuration()

Returns total ad period duration (in seconds). This includes the duration of ads in the pod as well as slate.

getAdPosition

abstract int getAdPosition()

Returns the position of current ad within the ad break, starting with 1.

getCurrentTime

abstract double getCurrentTime()

Returns current time within the ad (in seconds).

getDuration

abstract double getDuration()

Returns duration of current ad (in seconds).

getTotalAds

abstract int getTotalAds()

Returns the total number of ads in this ad break.