The THEOads API.

Remarks


- Available since v8.17.0.

interface TheoAdsAPI {
    currentInterstitials: readonly Interstitial[];
    scheduledInterstitials: readonly Interstitial[];
    replaceAdTagParameters(adTagParameters?): void;
}

Properties

currentInterstitials: readonly Interstitial[]

The currently playing interstitials.

scheduledInterstitials: readonly Interstitial[]

List of interstitials which still need to be played.

Methods

  • Replaces all the ad tag parameters used for upcoming ad requests for a live stream.

    Parameters

    • Optional adTagParameters: Record<string, string>

      The new ad tag parameters.

    Returns void

    Remarks


    - If set, this value overrides any parameters set on the TheoAdDescription.adTagParameters.