SsaiAdBreak

data class SsaiAdBreak @JvmOverloads constructor(val id: String, val scheduleTime: Double, val duration: Double? = null, val ads: List<SsaiAd> = emptyList(), val metadata: SsaiMetadata = SsaiMetadata()) : AdBreak

Represents an ad break stitched into the media stream by an SSAI provider.

Constructors

Link copied to clipboard
constructor(id: String, scheduleTime: Double, duration: Double? = null, ads: List<SsaiAd> = emptyList(), metadata: SsaiMetadata = SsaiMetadata())

Properties

Link copied to clipboard
open override val ads: List<SsaiAd>

The ads scheduled for this AdBreak.

Link copied to clipboard
Link copied to clipboard
open override val id: String

The id of the corresponding AdBreakConfig.

Link copied to clipboard
Link copied to clipboard
open override val replaceContentDuration: Double?

SSAI ad breaks are already stitched into the media stream. The player does not perform client-side content replacement for them, so this is always 0.0. Use duration for the stitched ad break duration.

Link copied to clipboard
open override val scheduleTime: Double

The time in seconds in the media timeline the AdBreak is scheduled for.