AdProgressInfo

interface AdProgressInfo


Information about the playback progress within an ad break.

Summary

Public functions

Double

Returns the total ad break duration, in seconds.

Double

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

Int

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

Double

Returns the current time within the ad, in seconds.

Double

Returns the duration of the current ad, in seconds.

Int

Returns the total number of ads in this ad break.

Public functions

getAdBreakDuration

fun getAdBreakDuration(): Double

Returns the total ad break duration, in seconds.

getAdPeriodDuration

fun getAdPeriodDuration(): Double

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

getAdPosition

fun getAdPosition(): Int

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

getCurrentTime

fun getCurrentTime(): Double

Returns the current time within the ad, in seconds.

getDuration

fun getDuration(): Double

Returns the duration of the current ad, in seconds.

getTotalAds

fun getTotalAds(): Int

Returns the total number of ads in this ad break.