AdErrorEvent

data class AdErrorEvent(val source: PlaybackSource, val break_: Break?, val assetId: String?, val error: Throwable, val timestamp: Long, val format: BreakFormat? = null, val asset: Asset? = null) : OptiViewAdsEvent

Playback failed. Emitted for both the content player and the SDK's ad player; source tells them apart. An ad error is not fatal: the SDK skips the asset and continues the break or resumes content.

Constructors

Link copied to clipboard
constructor(source: PlaybackSource, break_: Break?, assetId: String?, error: Throwable, timestamp: Long, format: BreakFormat? = null, asset: Asset? = null)

Properties

Link copied to clipboard
val asset: Asset?

The resolved asset, mirroring the web events' asset field.

Link copied to clipboard

Id of the asset that failed; null for a content error.

Link copied to clipboard

The break in progress when an ad failed; null for a content error.

Link copied to clipboard

The underlying error.

Link copied to clipboard

Declared format of the break's selected variant; null for content errors (PLAYG-182).

Link copied to clipboard

Which player failed.

Link copied to clipboard
open override val timestamp: Long

When the event was emitted, in milliseconds since the Unix epoch.

Link copied to clipboard
open override val type: OptiViewAdsEventType

Which event this is.