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.

Constructors

Link copied to clipboard
constructor(parcel: Parcel)
constructor(adBreakID: String, contentTimePosition: AdContentTimePosition, adSequencePosition: Int, adBreakStartTimeOffsetMs: Double = TIME_VALUE_UNKNOWN, remainingTimeMs: Double = TIME_VALUE_UNKNOWN, durationMs: Double = TIME_VALUE_UNKNOWN, totalAds: Int, adBreakIndex: Int = VALUE_UNKNOWN)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The Ad Break unique identifier.

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

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.

Link copied to clipboard

The total number of ads contained within this Ad Break.

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)