AdTimeupdateEvent

data class AdTimeupdateEvent(val break_: Break, val assetId: String, val currentTime: Double, val duration: Double, val timestamp: Long, val format: BreakFormat? = null, val asset: Asset? = null) : OptiViewAdsEvent

Ad playback progressed; fires on each time update of the ad player (about 4 Hz). For a GAM pod the times describe the whole pod, not the ad on screen.

Constructors

Link copied to clipboard
constructor(break_: Break, assetId: String, currentTime: Double, duration: Double, 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 playing.

Link copied to clipboard

The break the ad belongs to.

Link copied to clipboard

Position within the ad, in seconds.

Link copied to clipboard

Length of the ad, in seconds.

Link copied to clipboard

Declared format of the break's selected variant (PLAYG-182).

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.