Syntax
Attributes
| Attribute | Value | Required | What it means |
|---|---|---|---|
| DATA-ID | Reverse-DNS name, such as "com.example.movie.title" | Yes | Names the item of data. |
| VALUE | Any text | Unless URI is present | The data itself. Must not be combined with URI. |
| URI | URI of a JSON file | Unless VALUE is present | Where to load the data from. The file must be JSON in RFC 8216. Must not be combined with VALUE. |
| LANGUAGE | RFC 5646 language tag, such as "en" | No | The language of VALUE. Lets the same DATA-ID appear once per language. |
| FORMAT | JSON or RAW Default: JSON | No | How to read the file at URI: as JSON or as raw binary data. Ignored without URI. Added in the RFC 8216bis draft. |
What EXT-X-SESSION-DATA means
EXT-X-SESSION-DATA carries extra information about the whole presentation in the master playlist, such as a title, a description or a link to a JSON file with more data. Each tag holds one item, named by its DATA-ID.
The data is either written inline in VALUE or stored in a JSON file at URI. With LANGUAGE, the same item can be given in several languages.
Where it goes
Master playlists only. A playlist can contain as many as it needs, including several with the same DATA-ID in different languages.
Rules from RFC 8216
Section 4.3.4.4 sets these rules:
DATA-IDis required. It should follow a reverse-DNS naming style, such ascom.example.movie.title. There is no central registry, so choose names that are unlikely to clash with anyone else's.- Each tag must contain either
VALUEorURI, but not both. - A file at
URImust be JSON, or players may fail to read it. - When
LANGUAGEis given,VALUEshould be readable text in that language. - A playlist must not contain two tags with the same
DATA-IDand the sameLANGUAGE.
The RFC 8216bis draft adds a FORMAT attribute, so a URI can point to raw binary data instead of JSON.
Common mistakes
- Both
VALUEandURIin the same tag. - Short, generic IDs such as
title, which can clash with data added by other tools. - Double quotes inside a value. A quoted string cannot contain a double quote, a line feed or a carriage return, and the format has no escape character, so text with quotation marks needs other characters.
- Putting it in a media playlist. It is a master playlist tag.
How players treat it
Players generally do not show session data on screen. They read it and make it available to the app around them, which decides what to do with it, for example showing a title.
Example
#EXTM3U
#EXT-X-SESSION-DATA:DATA-ID="com.example.meeting.title",VALUE="City Council Regular Meeting",LANGUAGE="en"
#EXT-X-SESSION-DATA:DATA-ID="com.example.meeting.title",VALUE="Sesión ordinaria del Concejo Municipal",LANGUAGE="es"
#EXT-X-SESSION-DATA:DATA-ID="com.example.meeting.agenda",URI="agenda.json"
#EXT-X-STREAM-INF:BANDWIDTH=2900000,RESOLUTION=1280x720,CODECS="avc1.64001f,mp4a.40.2"
720p/index.m3u8The meeting title is given in two languages under one DATA-ID, and the agenda comes from a JSON file instead of an inline VALUE.
How m3u8.cloud handles it
The m3u8 inspector shows every EXT-X-SESSION-DATA entry in a master playlist.
Related tags
Check the tags in any playlist
Open the m3u8 inspector