Syntax
What EXT-X-PLAYLIST-TYPE means
EXT-X-PLAYLIST-TYPE tells players how the media playlist may change over time. It takes one of two values:
VOD- Video on demand. The playlist will never change, because it already lists every segment.
EVENT- Segments can only be added at the end. Nothing is removed or changed, so the playlist keeps every segment from the start of the event.
Without the tag, the playlist may change under the general rules: segments can be added at the end and removed from the top. That is how a sliding-window live stream works.
Where it goes
Media playlists only, once, usually near the top. The tag is optional.
Rules from RFC 8216
Section 4.3.3.5 and section 6 set these rules:
- A
VODplaylist must not change. Because it already lists the final segment, it also carriesEXT-X-ENDLIST. - For an
EVENTplaylist, the server must not change or delete any part of the file; it may only add lines. - A live playlist that removes old segments must not have this tag, since neither value allows removal.
- If any media playlist in a master playlist has the tag, all of them must, with the same value.
- Players must keep reloading the playlist unless it is
VOD, orEVENTtogether withEXT-X-ENDLIST. - With
VOD, the first segment of every media playlist in every variant must start at the same media timestamp, and subtitle and I-frame playlists may use a different target duration from the rest.
Choosing a type
Use VOD for finished videos. Use EVENT for a live event that viewers should be able to rewind to the start, such as a meeting or a conference session, and add EXT-X-ENDLIST when it ends. Leave the tag out for round-the-clock streams that keep only the last few minutes.
Common mistakes
- Very long
EVENTplaylists. An event that runs for many hours produces a playlist with thousands of lines, which players download again on every reload. EVENTwith a sliding window. Removing segments from anEVENTplaylist breaks the promise the tag makes.VODon a playlist that is still growing. Players load it once and never see the new segments.
How players treat it
For VOD, players load the playlist once. For EVENT, they keep reloading and let viewers seek anywhere from the start of the event to the live edge.
Example
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-PLAYLIST-TYPE:EVENT
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:6.000,
event/seg0.ts
#EXTINF:6.000,
event/seg1.ts
#EXTINF:6.000,
event/seg2.tsThis EVENT playlist keeps every segment from the start and only grows at the end; there is no EXT-X-ENDLIST yet because the event is still running.
How m3u8.cloud handles it
A VOD playlist is downloaded in full. An EVENT playlist without EXT-X-ENDLIST is recorded live, starting from the first piece the playlist still lists. Because EVENT playlists never drop pieces, that is normally the start of the event.
Related tags
Check the tags in any playlist
Open the m3u8 inspector