Interface UplynkAds

The Uplynk ads API.

interface UplynkAds {
    adBreaks: UplynkAdBreakList;
    currentAdBreak: undefined | UplynkAdBreak;
    currentAds: UplynkAdList;
    skip(): void;
}

Properties

List of ad breaks.

currentAdBreak: undefined | UplynkAdBreak

The currently playing ad break.

currentAds: UplynkAdList

The currently playing ads.


- These will always be part of the current ad break.

Methods

  • Seek to the end of the ad if it is skippable.

    Returns void


    - The ad is skippable when it is currently playing and the ad break's offset is reached.