A timeline state object is an object with a specific interface that details the playback state of an SSAI stream at any point in the absolute timeline.

The "absolute time" refers to a point in the complete timeline of a stream (with both ads and content included). The term "content time" refers to the time relative to the current content (either ad or content).

interface TimelineState {
    absoluteDuration: number;
    absoluteTime: number;
    linearAd: null | LinearAd;
    linearAdRoll: null | LinearAdRoll;
    relativeDuration: number;
    relativeTime: number;
}

Properties

absoluteDuration: number

The absolute duration of the stream.

absoluteTime: number

The absolute time in the stream.

linearAd: null | LinearAd
linearAdRoll: null | LinearAdRoll
relativeDuration: number

The duration of the current linear ad or the content itself.

relativeTime: number

The time in the stream relative either to the current linear ad or to the content itself.