React Native THEOplayer SDK
    Preparing search index...

    Interface AdsConfiguration

    Describes the configuration of advertisement.

    interface AdsConfiguration {
        allowedMimeTypes?: string[];
        ima?: GoogleImaConfiguration;
        preload?: AdPreloadType;
        theoads?: boolean;
        uiEnabled?: boolean;
        vpaidMode?: VPAIDMode;
    }
    Index
    allowedMimeTypes?: string[]

    Allows configuring which mime types are allowed during ad playback.


    - This feature is only available for Google IMA.
    - If set to an array, all ads with another mime types will be ignored.
    - If set to undefined the ad system will pick media based on the browser's capabilities.

    undefined

    The Google IMA configuration.

    iOS
    Android
    preload?: AdPreloadType

    Whether media files of mid- and postrolls are preloaded.


    - This feature is only available for Google IMA.

    'midroll-and-postroll'

    theoads?: boolean

    Whether to enable THEOads support.

    React Native THEOplayer SDK v8.4.0.

    Native THEOplayer SDK v8.2.0.

    false

    Web


    - This must be set to true in order to schedule a TheoAdDescription.

    uiEnabled?: boolean

    Whether an advertisement UI is shown.

    true

    vpaidMode?: VPAIDMode

    The iframe policy for VPAID ads.


    - This feature is only available for Google IMA and SpotX.

    'enabled'