Break

data class Break(val id: String, val start: Any, val duration: Double, val resumeOffset: Double? = null, val controls: Controls? = null, val variants: List<BreakVariant> = emptyList(), val position: String? = null, val delay: Double? = null)

A single ad break. The portable brain (BreakScheduler) reads only id, start, and duration; the SDK orchestrator additionally uses controls (snapback/seek policy) and variants (to build the sequencer's SeqBreak).

Constructors

Link copied to clipboard
constructor(id: String, start: Any, duration: Double, resumeOffset: Double? = null, controls: Controls? = null, variants: List<BreakVariant> = emptyList(), position: String? = null, delay: Double? = null)

Properties

Link copied to clipboard

What the viewer may do during the break; null leaves the defaults (no skip, no snapback).

Link copied to clipboard

Legacy pre-roll delay in seconds of played content (default 0).

Link copied to clipboard

Planned length of the break in seconds.

Link copied to clipboard
val id: String

Unique id of the break within the manifest; carried on every event for this break.

Link copied to clipboard

SDK-private legacy shape: "pre" is a START pre-roll (ignores start).

Link copied to clipboard

Where content resumes after the break, in seconds from the break start; null resumes after duration.

Link copied to clipboard
val start: Any

Wallclock ISO string, PTS number, or an EventTrigger (spec 1.1.0 start.type: "event").

Link copied to clipboard

The variants the SDK selects from; see resolveBreakFormat.