AdBreakInfo
data class AdBreakInfo(val adBreakID: String, val contentTimePosition: AdContentTimePosition, val adSequencePosition: Int, val adBreakStartTimeOffsetMs: Double = TIME_VALUE_UNKNOWN, val remainingTimeMs: Double = TIME_VALUE_UNKNOWN, val durationMs: Double = TIME_VALUE_UNKNOWN, val totalAds: Int, val adBreakIndex: Int = VALUE_UNKNOWN) : Parcelable
Represents information about an Ad, and the Ad Break it is composed in.
Properties
Link copied to clipboard
The index of the ad break. For a AdContentTimePosition.PREROLL Ad Break, returns 0. For AdContentTimePosition.MIDROLL, returns 1, 2,...,N. For a AdContentTimePosition.POSTROLL Ad Break, returns -1. NOTE: This is for VOD content only and for Live content always returns VALUE_UNKNOWN.
Link copied to clipboard
The content time offset at which the current Ad Break was scheduled, or TIME_VALUE_UNKNOWN if not available.
Link copied to clipboard
The sequence position of the Ad within the Ad Break.
Link copied to clipboard
Link copied to clipboard
The maximum duration of the Ad Break (in milliseconds).
Link copied to clipboard
The natural playback time remaining for the Ad Break (in milliseconds), or TIME_VALUE_UNKNOWN if not available.