Interface AdBreak

Represents an ad break in the VMAP specification or an ad pod in the VAST specification.

interface AdBreak {
    ads: undefined | Ad[];
    customData: unknown;
    integration: undefined | string;
    maxDuration: undefined | number;
    maxRemainingDuration: undefined | number;
    timeOffset: number;
}

Properties

ads: undefined | Ad[]

List of ads which will be played sequentially at the ad break's time offset.

customData: unknown

Additional integration-specific data associated with this ad.

integration: undefined | string

The integration of the ad break, represented by a value from AdIntegrationKind or the identifier of a custom integration registered with Ads.registerServerSideIntegration.

Remarks


- The 'theo' integration naming is deprecated and has been replaced with 'csai'.
- If unconfigured or if any ads have integration 'theo', will default to 'theo' for now but will default to 'csai' starting from THEOplayer 8.0.0.

maxDuration: undefined | number

The duration of the ad break, in seconds.

Remarks


- Ads are lazily loaded. This property becomes available when all ads are loaded.

maxRemainingDuration: undefined | number

The remaining duration of the ad break, in seconds.

Remarks


- Ads are lazily loaded. This property becomes available when all ads are loaded.
- This feature is not available in the Google IMA integration and will default to -1.

timeOffset: number

The time offset at which content will be paused to play the ad break, in seconds.