interface SsaiIntegration {
    getCurrentLinearAd(): null | LinearAd;
    getRelativeDuration(): number;
    getRelativeTimelineState(): null | TimelineState;
    seekInRelativeTime(t, preventAdSkips?): void;
}

Methods

  • Get the current LinearAd.

    Returns null | LinearAd

  • Get the duration of a linear ad or content, whichever is currently playing.

    Returns number

  • Get the TimelineState object relative to the current linear ad or content.

    Returns null | TimelineState

  • Seek to any point in a linear ad or content, whichever is currently playing.

    Parameters

    • t: number
    • Optional preventAdSkips: boolean

    Returns void