AdProgressInfo

public interface AdProgressInfo


Information about the playback progress within an ad break.

Summary

Public methods

abstract double

Returns the total ad break duration, in seconds.

abstract double

Returns the total ad period duration, in seconds, including ads and slate.

abstract int

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

abstract double

Returns the current time within the ad, in seconds.

abstract double

Returns the duration of the current ad, in seconds.

abstract int

Returns the total number of ads in this ad break.

Public methods

getAdBreakDuration

abstract double getAdBreakDuration()

Returns the total ad break duration, in seconds.

getAdPeriodDuration

abstract double getAdPeriodDuration()

Returns the total ad period duration, in seconds, including ads and slate.

getAdPosition

abstract int getAdPosition()

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

getCurrentTime

abstract double getCurrentTime()

Returns the current time within the ad, in seconds.

getDuration

abstract double getDuration()

Returns the duration of the current ad, in seconds.

getTotalAds

abstract int getTotalAds()

Returns the total number of ads in this ad break.