Representation of an HLS interstitial ad.

interface HlsInterstitial {
    adCreativeSignaling?: any;
    assetList?: HlsInterstitialAssetList;
    assetListUri?: string;
    assetUri?: string;
    customAttributes?: {
        [key: string]: any;
    };
    duration?: number;
    end: number;
    id: string;
    jumpPolicy?: JumpPolicy;
    plannedDuration?: number;
    playoutLimit?: number;
    restrict?: RestrictValue[];
    resumeOffset?: number;
    seekingRestriction?: NO_SEEKING;
    start: number;
    triggerPolicy?: TriggerPolicy[];
}

Hierarchy (view full)

Properties

adCreativeSignaling?: any

Ad creative signaling data, if present. The data could be present either on ASSET-LIST level or DATE-RANGE level based on SVTA spec.

Asset list data, if present. The parsed JSON object returned by the URL in assetListUri.

assetListUri?: string

The URL to a JSON object containing a list of interstitials “ASSETS”. Parsed from X-ASSET-LIST. If defined, this takes precedence over assetUri.

assetUri?: string

An absolute URL for a single interstitial asset. Parsed from X-ASSET-URI. If assetListUri is defined, this property should be ignored.

customAttributes?: {
    [key: string]: any;
}

Any attributes that is not known in the HLS interstitial spec. The tracking information could be present here, X-AD-CREATIVE-SIGNALING in case of SVTA.

Type declaration

  • [key: string]: any
duration?: number

The actual duration of the interstitial in seconds, if known, otherwise undefined. May differ from end - start, as the end time is always populated with a default of +1.

end: number

The end time for the ad in seconds.

id: string

The unique identifier for the ad.

jumpPolicy?: JumpPolicy

Jump policy for the ad. Determines if at least one ad must play when jumping over multiple ads. Converted from X-RESTRICT attribute by HlsInterstitialsProvider.

plannedDuration?: number

The expected duration in seconds of the interstitial if duration is not yet known. Usually populated if the interstitial is dynamically updated or features an asset list.

playoutLimit?: number

Value from X-PLAYOUT-LIMIT header. Defines how long the interstitial is expected to play for, in seconds. Should be intended as a way to exit an interstitial early.

restrict?: RestrictValue[]

Values from X-RESTRICT header (enumerated-string-list). Defines restrictions on seeking/playback behavior during the interstitial. Can contain multiple restriction values (e.g., [SKIP, JUMP]).

resumeOffset?: number

Value from X-RESUME-OFFSET header. Defines how much content should be replaced by the interstitial ad. If undefined, the duration of the ad(s) should be used.

seekingRestriction?: NO_SEEKING

Seeking restriction for the ad. Determines if seeking is allowed during ad playback. Converted from X-RESTRICT attribute by HlsInterstitialsProvider.

start: number

The scheduled start time for the ad in seconds.

triggerPolicy?: TriggerPolicy[]

Trigger policy for the interstitial. Defines when the interstitial should be triggered. Converted from CUE attribute by HlsInterstitialsProvider.