AdScheduleChanged

data class AdScheduleChanged(val oldSchedule: List<AdBreak>, val newSchedule: List<AdBreak>) : PlayerEvent

Emitted when the AdvertisingApi.schedule changes.

Changes can occur when:

  • An AdItem is scheduled on the player. Either through the API or by server guidance or VMAP resolving.

  • The exact schedule time of an AdItem with a relative scheduling (i.e. post or percentage schedules) becomes available.

  • An AdItem is no longer relevant and is removed from the AdvertisingApi.schedule

Limitation: VMAP that are processed via IMA (AdSourceType.Ima) do not appear in the AdvertisingApi.schedule, and thus do not trigger this event.

Constructors

Link copied to clipboard
constructor(oldSchedule: List<AdBreak>, newSchedule: List<AdBreak>)

Properties

Link copied to clipboard

The new schedule of ad breaks.

Link copied to clipboard

The previous ad breaks.