React Native THEOplayer SDK
    Preparing search index...

    Interface AdBreak

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

    interface AdBreak {
        ads: Ad[] | undefined;
        customData?: Record<string, unknown>;
        id: string | undefined;
        integration: AdIntegrationKind | CustomAdIntegrationKind | undefined;
        maxDuration: number | undefined;
        maxRemainingDuration: number | undefined;
        timeOffset: number;
    }
    Index
    ads: Ad[] | undefined

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

    customData?: Record<string, unknown>

    Additional integration-specific data associated with this ad break.


    - The value depends on the ad integration. It may be undefined if the integration does not provide any custom data.
    - On native platforms, values must be JSON-serializable. Custom data is preserved both in events forwarded to JavaScript and in events broadcast to native listeners.

    id: string | undefined

    The identifier of the ad break.


    - For THEOads, this is the interstitial identifier.
    - For Google IMA & DAI, this is the pod index of the ad break.
    - For other integrations, this may be undefined.

    integration: AdIntegrationKind | CustomAdIntegrationKind | undefined

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

    maxDuration: number | undefined

    The duration of the ad break, in seconds.


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

    maxRemainingDuration: number | undefined

    The remaining duration of the ad break, in seconds.


    - 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.