Syntax
What EXT-X-ENDLIST means
EXT-X-ENDLIST says that no more segments will be added to the media playlist. Its presence is the main sign of an on-demand video. Without it, players treat the playlist as live and keep reloading it to look for new segments.
The tag has no value and no attributes.
Where it goes
Media playlists only, once. RFC 8216 allows it anywhere in the file, but servers usually put it on the last line. When a live event ends, the server adds it to the playlist.
Rules from RFC 8216
Section 4.3.3.4 defines the tag; sections 6.2.1 and 6.3 add these rules:
- If a media playlist contains the final segment of the presentation, it must contain
EXT-X-ENDLIST. The RFC explains that this lets players avoid pointless reloads. - If the tag is missing, the server must publish a new version of the playlist with at least one new segment, between half and one and a half target durations after the previous version.
- If the tag is missing, players should not start playback less than three target durations from the end of the playlist.
- In a playlist without the tag, an
EXT-X-STARToffset should not fall within three target durations of the end.
Common mistakes
- Missing on a finished video. A recording without
EXT-X-ENDLISTlooks live. Players start near the end, keep reloading, and may not offer a full seek bar. - Added too early. If the tag appears while segments are still being added, players stop updating and miss the rest.
- A stale cached copy. A content delivery network can keep serving an old version of the playlist without the tag after the event has ended.
How players treat it
With the tag, players stop reloading, show the full duration, allow seeking anywhere, and start at the beginning or at the EXT-X-START point. Without it, they show a live interface and start near the live edge. A playlist can change from live to on demand in place: once the tag appears, players that are still reloading treat the stream as finished.
Example
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:6.000,
seg0.ts
#EXTINF:6.000,
seg1.ts
#EXTINF:3.200,
seg2.ts
#EXT-X-ENDLISTThe EXT-X-ENDLIST line tells players that seg2.ts is the last segment, so they stop reloading and treat the video as on demand.
How m3u8.cloud handles it
m3u8.cloud uses EXT-X-ENDLIST to tell on-demand video from live streams. If the tag is present, the video is on demand and can be downloaded in full. If it is missing, the stream is treated as live and offered as a recording: press Record, then Stop and save to finish the file.
A recording includes whatever the playlist still lists from before you pressed Record, often a minute or two.
Related tags
Check the tags in any playlist
Open the m3u8 inspector