React Native THEOplayer SDK
    Preparing search index...

    Interface AdsAPI

    The API for advertisements.

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

    The Google DAI API.


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

    React Native THEOplayer SDK v8.7.0.

    • Skip the current linear ad.

      Returns void


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