Interface UplynkAdBreak

Represents an Uplynk ad break.

interface UplynkAdBreak {
    ads: UplynkAdList;
    duration: undefined | number;
    endTime: undefined | number;
    skipOffset: number;
    startTime: number;
    addEventListener<TType extends keyof UplynkAdBreakEventMap>(
        type: TType | readonly TType[],
        listener: EventListener<UplynkAdBreakEventMap[TType]>,
    ): void;
    removeEventListener<TType extends keyof UplynkAdBreakEventMap>(
        type: TType | readonly TType[],
        listener: EventListener<UplynkAdBreakEventMap[TType]>,
    ): void;
}

Hierarchy (View Summary)

Properties

List of ads in the ad break.

duration: undefined | number

The duration of the ad break, in seconds.


- For channels it can return undefined when the duration has not yet been signaled.

endTime: undefined | number

The end time of the ad break, in seconds.


- For channels it can return undefined when the end time has not yet been signaled.

skipOffset: number

Offset after which the ad break may be skipped, in seconds.

If the offset is -1, the ad is unskippable. If the offset is 0, the ad is immediately skippable. Otherwise, it must be a positive number indicating the offset. Skipping the ad in live streams is unsupported.

To be able to skip the first ad after 10 seconds use: 10.

startTime: number

The start time of the ad break, in seconds.

Methods