Skip to main content

Manifests and Delivery

A manifest is a map of playable resources​

A manifest describes tracks, timelines, and resource locations. It does not usually contain the video samples themselves. A player parses the description, filters options against its playback path, then requests the media it needs.

For HLS, a multivariant playlist points to media playlists. A media playlist points to segments. For DASH, an MPD describes periods, adaptation sets, representations, and segment addressing. In either format, relative URLs resolve against a base URL, so a correct-looking manifest can still point to the wrong object path.

HLS:
master.m3u8
-> video variant playlist
-> audio playlist
-> subtitle playlist
-> initialization section and media segments

DASH:
manifest.mpd
-> Period
-> AdaptationSet
-> Representation
-> initialization and media segment URLs

The manifest can also describe codec strings, language, resolution, bitrate, encryption signaling, and trick-play tracks. Playback speed is generally a player/media-element setting, not an encoded rendition listed in the manifest.

HLS example​

This illustrative master playlist references separate audio and subtitle playlists, three video variants, and an I-frame playlist. Paths are relative to the master playlist URL.

#EXTM3U
#EXT-X-VERSION:7
#EXT-X-INDEPENDENT-SEGMENTS

# DRM signal: content uses FairPlay
#EXT-X-SESSION-KEY:METHOD=SAMPLE-AES,URI="skd://movie-123",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"

# Audio tracks
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aud",LANGUAGE="hi",NAME="Hindi",DEFAULT=YES,AUTOSELECT=YES,URI="audio_hi/index.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aud",LANGUAGE="en",NAME="English",URI="audio_en/index.m3u8"

# Subtitles
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",LANGUAGE="en",NAME="English",URI="subs_en/index.m3u8"

# Video variants
#EXT-X-STREAM-INF:BANDWIDTH=5200000,RESOLUTION=1920x1080,FRAME-RATE=30,CODECS="avc1.640028,mp4a.40.2",AUDIO="aud",SUBTITLES="subs"
v1080/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=3000000,RESOLUTION=1280x720,FRAME-RATE=30,CODECS="avc1.64001f,mp4a.40.2",AUDIO="aud",SUBTITLES="subs"
v720/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1400000,RESOLUTION=854x480,FRAME-RATE=30,CODECS="avc1.64001e,mp4a.40.2",AUDIO="aud",SUBTITLES="subs"
v480/index.m3u8

# Trick play (I-frame-only playlist)
#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=250000,RESOLUTION=1280x720,CODECS="avc1.64001f",URI="v720/iframes.m3u8"

The selected video variant references a media playlist. A simplified fMP4 VOD media playlist looks like this:

#EXTM3U
#EXT-X-VERSION:7
#EXT-X-TARGETDURATION:6
#EXT-X-PLAYLIST-TYPE:VOD

# Media encryption signaling for FairPlay
#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://movie-123",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"

# Initialization section for fragmented MP4
#EXT-X-MAP:URI="init.mp4"

#EXTINF:6.000,
seg_001.m4s
#EXTINF:6.000,
seg_002.m4s
#EXTINF:6.000,
seg_003.m4s
#EXT-X-ENDLIST

This is a teaching example, not a substitute for validating an actual FairPlay package. Real encryption signaling and key delivery must match the content-protection provider's profile.

DASH example​

This abbreviated static MPD has video, two audio languages, subtitles, and a trick-mode representation. It demonstrates common addressing and content-protection signaling; placeholder PSSH values and keys do not make it playable DRM content.

<MPD xmlns="urn:mpeg:dash:schema:mpd:2011"
xmlns:cenc="urn:mpeg:cenc:2013"
type="static"
mediaPresentationDuration="PT2H10M"
minBufferTime="PT2S">
<Period>
<AdaptationSet id="1" contentType="video" mimeType="video/mp4" segmentAlignment="true">
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011"
value="cbcs"
cenc:default_KID="1a2b3c4d-1111-2222-3333-444455556666"/>
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed">
<cenc:pssh>AAAAW3Bzc2g...</cenc:pssh>
</ContentProtection>
<ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95">
<cenc:pssh>AAADfnBzc2g...</cenc:pssh>
</ContentProtection>
<SegmentTemplate timescale="1000" duration="6000" startNumber="1"
initialization="$RepresentationID$/init.mp4"
media="$RepresentationID$/seg_$Number%03d$.m4s"/>
<Representation id="v1080" bandwidth="5000000" width="1920" height="1080"
frameRate="30" codecs="avc1.640028"/>
<Representation id="v720" bandwidth="2800000" width="1280" height="720"
frameRate="30" codecs="avc1.64001f"/>
<Representation id="v480" bandwidth="1200000" width="854" height="480"
frameRate="30" codecs="avc1.64001e"/>
</AdaptationSet>

<AdaptationSet id="2" contentType="audio" mimeType="audio/mp4" lang="hi">
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
<SegmentTemplate timescale="1000" duration="6000" startNumber="1"
initialization="$RepresentationID$/init.mp4"
media="$RepresentationID$/seg_$Number%03d$.m4s"/>
<Representation id="audio_hi" bandwidth="128000" codecs="mp4a.40.2"
audioSamplingRate="48000"/>
</AdaptationSet>

<AdaptationSet id="3" contentType="audio" mimeType="audio/mp4" lang="en">
<SegmentTemplate timescale="1000" duration="6000" startNumber="1"
initialization="$RepresentationID$/init.mp4"
media="$RepresentationID$/seg_$Number%03d$.m4s"/>
<Representation id="audio_en" bandwidth="128000" codecs="mp4a.40.2"
audioSamplingRate="48000"/>
</AdaptationSet>

<AdaptationSet id="4" contentType="text" mimeType="text/vtt" lang="en">
<Representation id="subs_en" bandwidth="1000">
<BaseURL>subs_en/en.vtt</BaseURL>
</Representation>
</AdaptationSet>

<AdaptationSet id="5" contentType="video" mimeType="video/mp4">
<EssentialProperty schemeIdUri="http://dashif.org/guidelines/trickmode"
value="1"/>
<SegmentTemplate timescale="1000" duration="6000" startNumber="1"
initialization="$RepresentationID$/init.mp4"
media="$RepresentationID$/seg_$Number%03d$.m4s"/>
<Representation id="trick720" bandwidth="250000" width="1280" height="720"
codecs="avc1.64001f"/>
</AdaptationSet>
</Period>
</MPD>

The SegmentTemplate values form URL patterns. With a duration of 6000 and timescale of 1000, each nominal segment duration is six seconds. A real MPD must also match the actual segment timestamps, base URL, codecs, and packaging.

DRM signaling and access control​

The media samples may be encrypted while the manifest remains readable. The manifest signals protection information such as a scheme, key ID, or system-specific data. The browser's DRM implementation and a license service participate in playback; the exact exchange depends on the key system and packaging.

HLS commonly signals FairPlay with an EXT-X-KEY or EXT-X-SESSION-KEY entry. DASH uses ContentProtection descriptors and may carry PSSH data. A license-server URL is often supplied by the application or platform configuration, though formats and providers can add their own signaling.

Signed URLs, cookies, and tokens control whether a request may retrieve a manifest or segment. DRM controls whether encrypted samples can be decrypted for playback. These mechanisms can be combined; neither one replaces the other.

This section covers signaling only. For EME, CDMs, license requests, key rotation, and player configuration, use the Shaka DRM guide.

What the player learns​

  1. It parses the manifest and resolves resource URLs.
  2. It filters representations against codec, container, DRM, and device support.
  3. It selects audio and text tracks using application preferences and manifest metadata.
  4. It chooses a playable video representation using its bandwidth estimate, buffer state, and configured restrictions.
  5. It downloads initialization data when required and fetches media segments as playback needs them.
  6. It can adapt later as network estimates, buffer state, or user preferences change.

This is not a promise that every player makes the same choice. The exact algorithm and playback path are implementation- and device-dependent. Shaka exposes parsed track information through APIs such as getVariantTracks() and getTextTracks().

Codec strings​

HLS commonly declares codecs in CODECS; DASH declares them on a Representation. For example:

CODECS="avc1.640028,mp4a.40.2"

The AVC string follows the form avc1.PPCCLL. In avc1.640028, 64 identifies the High profile, 00 the constraint byte, and 28 hexadecimal represents level 4.0. mp4a.40.2 identifies an AAC profile commonly used for AAC-LC.

const supported = MediaSource.isTypeSupported(
'video/mp4; codecs="avc1.640028"',
);
console.log(supported);
// => A capability hint for this browser and codec string, not a playback guarantee

Codec support can depend on profile, level, hardware, operating system, and playback API. A true capability result does not prove that a particular asset is correctly packaged or will decode smoothly.

Gotchas​

Looks likeActuallyWhy
A master playlist contains every video segmentIt usually points to media playlistsVariant and media playlists have different roles
DASH always lists every segment URLSegment templates can describe URL patternsThe player expands addressing rules
A codec string proves a device can play an assetIt helps identify the encoded formatRuntime, profile, level, DRM, and packaging still matter
DRM hides the manifestSignaling is generally readable metadataProtection applies to media samples and license handling
A successful license request proves media delivery worksSegment requests are separateEach layer can fail independently

Resources​