UplynkAdBreak

@Serializable
data class UplynkAdBreak(val ads: List<UplynkAd>, val type: String, val position: String, val timeOffset: Duration, val duration: Duration)

Represents data containing details about an ad break.

Constructors

Link copied to clipboard
constructor(ads: List<UplynkAd>, type: String, position: String, timeOffset: Duration, duration: Duration)

Properties

Link copied to clipboard

A list of ad objects associated with this ad break.

Link copied to clipboard
@Serializable(with = DurationToSecDeserializer::class)
val duration: Duration

Indicates the duration of the ad break.

Link copied to clipboard

Indicates the position of the ad break. Valid values are: "preroll", "midroll", "postroll", "pause", "overlay".

Link copied to clipboard
@Serializable(with = DurationToSecDeserializer::class)
val timeOffset: Duration

Indicates the start time of the ad break in the player timeline.

Link copied to clipboard

Indicates the ad break type. Valid values are: "linear", "nonlinear".