Live2DateRangeProcessor

class Live2DateRangeProcessor(eventEmitter: <Error class: unknown class>, playheadSupplier: Live2TrackingPoller.PlayheadPositionSupplier, adPodListener: TimedAdPodListener)

Turns the SCTE-35 EXT-X-DATERANGE markers of a NextGen Live 2.0 stream into slate-only ad pods, so that a break MediaTailor filled entirely with slate shows the ad break countdown.

MediaTailor lists a break in its tracking API only once it has stitched an ad into it, so a break without ads is known to the player from the marker alone. A pod built here is merged with, and yields to, the tracking data as soon as that lists ads for the same break.

Parameters

eventEmitter

the emitter of the video view playing the stream

playheadSupplier

the current playhead position, on the same scale as Event.PLAYHEAD_POSITION_LONG

adPodListener

receives one slate-only ad pod per marker that has not ended

Constructors

Link copied to clipboard
constructor(eventEmitter: <Error class: unknown class>, playheadSupplier: Live2TrackingPoller.PlayheadPositionSupplier, adPodListener: TimedAdPodListener)

Types

Link copied to clipboard
object Companion