Amazon Vinyl
    Preparing search index...

    Interface HlsDateRange

    A parsed EXT-X-DATERANGE tag from an HLS Media Playlist (RFC 8216 §4.3.2.7).

    A Date Range associates a span of the media timeline, anchored to a wall-clock START-DATE, with a set of application-defined attributes. It is the transport for HLS Interstitials (SGAI): an interstitial is a Date Range whose classId is HLS_INTERSTITIAL_CLASS and which carries the X-ASSET-URI or X-ASSET-LIST client attributes describing the ad content.

    interface HlsDateRange {
        classId?: string;
        clientAttributes: Readonly<Record<string, string>>;
        duration?: number;
        endDate?: string;
        endOnNext?: boolean;
        id: string;
        plannedDuration?: number;
        startDate: string;
    }
    Index
    classId?: string

    The CLASS attribute, a client-defined category for the range, if present.

    clientAttributes: Readonly<Record<string, string>>

    The client-defined X- attributes of the range, keyed by their full attribute name (e.g. X-ASSET-URI). Values are the raw parsed strings with surrounding quotes removed. Numeric and hex X- attributes are kept verbatim so callers can interpret them per their own schema.

    duration?: number

    The duration of the range in seconds (DURATION), if present.

    endDate?: string

    The ISO-8601 wall-clock time at which the range ends (END-DATE), if present.

    endOnNext?: boolean

    Whether the END-DATE of a live range equals the START-DATE of the range that follows it (END-ON-NEXT=YES). Ranges with this flag must carry a classId and omit duration and endDate.

    id: string

    A unique identifier for this Date Range within the playlist (ID).

    plannedDuration?: number

    The expected duration of the Date Range in seconds. This attribute SHOULD be used to indicate the expected duration of a Date Range whose actual duration is not yet known. It must be positive.

    startDate: string

    The ISO-8601 wall-clock time at which the range begins (START-DATE).