SgaiAdBreakPlaybackContext: {
    getPlayoutLimit: (() => number | undefined);
    isLastAdBreak: boolean;
}

Type declaration

  • getPlayoutLimit: (() => number | undefined)

    Returns the current playout limit for the active ad break, aka the amount of time the ad break (including all nested ads) is expected to be played for. This is evaluated during playback to support dynamically updated limits. If undefined is returned, the ad break is expected to be played in its entirety.

      • (): number | undefined
      • Returns number | undefined

  • isLastAdBreak: boolean

    Indicates whether the passed-in ad break is the last one in the current playback sequence. This is used to decide whether main content should be restored afterwards.