interface AdsAPI {
    dai?: GoogleDAI;
    omid?: Omid;
    currentAdBreak(): Promise<AdBreak>;
    currentAds(): Promise<Ad[]>;
    playing(): Promise<boolean>;
    schedule(ad): void;
    scheduledAdBreaks(): Promise<AdBreak[]>;
    skip(): void;
}

Properties

dai?: GoogleDAI

The Google DAI API.

Remarks


- Only available when the feature or extension 'google-dai' is enabled.

omid?: Omid

The Omid API, which can be used to add as well as remove friendly video controls overlay obstructions.

Since

React Native THEOplayer SDK v8.7.0.

Methods

  • Add an ad break request.

    Parameters

    Returns void

    Remarks


    - Prefer scheduling ad breaks up front through SourceConfiguration.ads.

  • Skip the current linear ad.

    Returns void

    Remarks


    - This will have no effect when the current linear ad is (not yet) skippable.