EXT-X-DATERANGE

Attaches a start date, an optional end and custom attributes to a span of time, for ad breaks and other timed events.

Media segment tagAny protocol versionIn: Media playlistRFC 8216, section 4.3.2.7

Syntax

#EXT-X-DATERANGE:<attribute-list>

Attributes

AttributeValueRequiredWhat it means
IDAny string, unique in the playlistYesIdentifies the date range. Tags with the same ID describe the same range and must not contradict each other.
CLASSAny string, often reverse-DNSIf END-ON-NEXT=YESNames a set of attributes and their meanings that the client understands. All ranges with the same CLASS follow the same semantics.
START-DATEISO 8601 date and timeYesWhen the date range begins. The RFC 8216bis draft lets later tags with the same ID leave it out.
CUEPRE, POST and/or ONCENoWhen to trigger the action tied to the range: before playback (PRE), after it (POST), and whether only once (ONCE). Added in the RFC 8216bis draft.
END-DATEISO 8601 date and timeNoWhen the date range ends. It must not be earlier than START-DATE.
DURATIONSeconds, not negativeNoHow long the range lasts. A single instant, such as a goal being scored, should use 0.
PLANNED-DURATIONSeconds, not negativeNoThe expected length when the real length is not yet known, such as a planned ad break.
X-*Name starting with X-, such as X-COM-EXAMPLE-AD-IDNoClient-defined attributes for any extra data. Reverse-DNS names help avoid clashes.
SCTE35-CMDSCTE-35 splice_info_section in hexNoAn SCTE-35 command that is not a splice out or splice in, such as a time signal.
SCTE35-OUTSCTE-35 splice_info_section in hexNoThe SCTE-35 splice-out message, marking the start of a break.
SCTE35-INSCTE-35 splice_info_section in hexNoThe SCTE-35 splice-in message, marking the end of a break.
END-ON-NEXTYESNoEnds this range where the next range of the same CLASS starts. Requires CLASS and rules out DURATION and END-DATE.

What EXT-X-DATERANGE means

EXT-X-DATERANGE attaches information to a span of real-world time. A date range has a start date, an optional end or duration, and any number of extra attributes. Servers use it to mark ad breaks, program boundaries, agenda items and other events that players and apps can react to.

Dates are matched to segments through EXT-X-PROGRAM-DATE-TIME, so the tag's position in the playlist does not decide which segment it belongs to.

Where it goes

Media playlists only. RFC 8216 defines it among the media segment tags; the RFC 8216bis draft moves it into a new group of media metadata tags. A playlist can contain many date ranges. The same range can also appear in more than one tag with the same ID, for example once when an ad break starts and again when its real end is known.

Rules from RFC 8216

Section 4.3.2.7 and section 6.2.1 set these rules:

SCTE-35 ad markers

SCTE-35 is the broadcast standard for signaling ad breaks. RFC 8216 maps it onto this tag: the splice-out message goes in SCTE35-OUT, the splice-in message in SCTE35-IN, and other commands in SCTE35-CMD, each as the binary message written out in hexadecimal.

Common mistakes

How players treat it

Players do not usually show date ranges on screen. They pass them to the app around them, which can use them for ad tracking, chapter markers or alerts. The RFC 8216bis draft builds HLS interstitials on this tag: date ranges with CLASS="com.apple.hls.interstitial" tell supporting players to play separate content, such as an ad, at a set time.

Example

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXT-X-PROGRAM-DATE-TIME:2026-03-04T18:30:00.000Z
#EXTINF:6.000,
seg0.ts
#EXT-X-DATERANGE:ID="agenda-4",CLASS="com.example.agenda",START-DATE="2026-03-04T18:30:06.000Z",DURATION=12.0,X-COM-EXAMPLE-TITLE="Public comment"
#EXTINF:6.000,
seg1.ts
#EXTINF:6.000,
seg2.ts
#EXT-X-ENDLIST

The date range marks a 12-second agenda item that starts with the second segment; X-COM-EXAMPLE-TITLE is a client-defined attribute.

How m3u8.cloud handles it

The m3u8 inspector lists every EXT-X-DATERANGE in a playlist. Date ranges are not written into the saved file, so a video saved with m3u8.cloud carries no ad markers or other date range data.

Check the tags in any playlist

Open the m3u8 inspector