SsaiAd

com.bitmovin.player.api.ssai

SsaiAd

@ExperimentalBitmovinApi

data class SsaiAd@JvmOverloadsconstructor(val id: String = UUID.randomUUID().toString(), val duration: Double = -1.0, val skippableAfter: Double? = null, val clickThroughUrl: String? = null) : LinearAd

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

Constructors

SsaiAd@JvmOverloads
constructor(id: String = UUID.randomUUID().toString(), duration: Double = -1.0, skippableAfter: Double? = null, clickThroughUrl: String? = null)

Properties

NameSummary
clickThroughUrlopen override val clickThroughUrl: String?
The url the user should be redirected to when clicking the ad.
dataopen override val data: AdData? = null
Holds various additional AdData.
durationopen override val duration: Double
The duration of the ad.
extensionsopen val extensions: List<VastAdExtension>
VAST Extension nodes for the ad.
heightopen override val height: Int = 0
The height of the ad.
idopen override val id: String
Identifier for the ad. A random UUID is generated when no provider-specific identifier is available.
isLinearopen override val isLinear: Boolean
Determines whether an ad is linear, i.e. playback of main content needs to be paused for the ad.
mediaFileUrlopen override val mediaFileUrl: String? = null
The corresponding media file url for the ad.
skippableAfteropen override val skippableAfter: Double?
Time in seconds, after which the ad is skippable. The ad is not skippable if this property is not set.
uiConfigopen override val uiConfig: LinearAdUiConfig? = null
Holds relevant information for displaying the ad.
widthopen override val width: Int = 0
The width of the ad.

Functions

NameSummary
clickThroughUrlOpenedopen override fun clickThroughUrlOpened()
Callback function to track the opening of the clickThroughUrl.
collapsedopen fun collapsed()
Callback function to track the ad collapsed state.
expandedopen fun expanded()
Callback function to track the ad expanded state.