Amazon Vinyl
    Preparing search index...

    Interface MediaTimeline

    Represents the full media timeline, composed of one or more periods.

    interface MediaTimeline {
        minBufferTime: number;
        periods: readonly MediaPeriod[];
        getAdBreaks(): Promise<AdBreakList>;
        getDuration(): Promise<number>;
    }
    Index
    minBufferTime: number

    The minimum duration of the buffer that a client should maintain for uninterrupted playback.

    periods: readonly MediaPeriod[]
    • The total duration of the media, in seconds. Returns Infinity for live streams. Rejects when there are no segments to derive a duration from.

      Returns Promise<number>