Skip to content

application/dash+xml MIME Type — Meaning, Usage & Examples

application/dash+xml
Extensions: .mpd Class: application Spec: ISO/IEC 23009 (IANA registered)
View IANA registration ↗

application/dash+xml means: application/dash+xml is the media type for MPEG-DASH manifests, an international adaptive streaming standard. An .mpd XML document describes periods, adaptation sets and representations, letting players dynamically switch quality and bitrate over HTTP. Application media types carry structured or binary data that a program consumes rather than a human reading raw bytes. The subtype tells the receiver exactly which parser, decoder or handler to invoke, so sending the correct Content-Type is part of the API contract: a mismatch makes servers reject the body with 415 Unsupported Media Type or clients mis-parse the payload. You will encounter application/dash+xml in contexts such as mpeg-dash adaptive streaming manifests; cross-platform streaming with a single open standard; drm-protected streaming via common encryption. It is commonly associated with the file extension(s) .mpd. DASH manifests are XML, not media bytes; segments are typically fMP4. Native DASH support is rare in browsers, so players like dash.js or Shaka Player parse the MPD and use Media Source Extensions. DASH and HLS are the two dominant adaptive streaming approaches.

Advertisement
Ad slot · ref-top

When you'll see application/dash+xml

  • MPEG-DASH adaptive streaming manifests
  • Cross-platform streaming with a single open standard
  • DRM-protected streaming via common encryption

How to handle it

When handling an application type, set the Content-Type header explicitly on every request and response that carries a body, and advertise what you accept with the Accept header. Parse the payload with a library that matches the subtype rather than sniffing bytes, and validate the structure before trusting it. If a server returns 415, the declared type does not match what it expects — compare your header against the API documentation character for character, including parameters such as charset or boundary. As a final checklist for application types: register the exact subtype in your API documentation, validate incoming bodies against a schema before use, set X-Content-Type-Options: nosniff to stop MIME sniffing, and version your media types when the payload contract changes so old clients keep working.

Notes & gotchas

DASH manifests are XML, not media bytes; segments are typically fMP4. Native DASH support is rare in browsers, so players like dash.js or Shaka Player parse the MPD and use Media Source Extensions. DASH and HLS are the two dominant adaptive streaming approaches.

Examples

HTTP
HTTP/1.1 200 OK
Content-Type: application/dash+xml; charset=utf-8
Content-Length: 79

<?xml version="1.0" encoding="utf-8"?>
<root><item id="1">example</item></root>
curl
curl -i -H "Accept: application/dash+xml" https://api.example.com/v1/resource   # inspect the returned Content-Type
JavaScript (fetch)
const res = await fetch("/v1/resource", { headers: { Accept: "application/dash+xml" } });
// verify res.headers.get("Content-Type") starts with "application/dash+xml"
const text = await res.text();   // handle according to the declared type
Python (requests)
import requests

res = requests.get("https://api.example.com/v1/resource",
                   headers={"Accept": "application/dash+xml"}, timeout=10)
res.raise_for_status()
# confirm the server declared the expected type
assert res.headers["Content-Type"].startswith("application/dash+xml")
text = res.text   # decode/handle according to the type

Frequently asked questions

How is DASH different from HLS?

Both are adaptive HTTP streaming protocols; DASH is an open ISO standard using XML manifests and fMP4 segments, while HLS is Apple's using m3u8 playlists. Browser playback for both usually needs a JS player.

Which players support DASH?

dash.js, Shaka Player and many commercial players parse application/dash+xml manifests and stream via MSE. Native browser support is limited, so include a player library.

What happens if I send the wrong application Content-Type?

Servers that validate media types answer 415 Unsupported Media Type, and clients may parse the body with the wrong decoder. Always set Content-Type to the registered type that matches your payload, and set Accept to the types you can handle.

Is application/octet-stream a safe default?

It means 'arbitrary binary bytes' and forces a download rather than inline handling. Use it only when the real type is unknown or you deliberately want a save-as dialog; otherwise declare the specific registered type.

How do I debug a 415 Unsupported Media Type response?

Compare the Content-Type you actually sent against what the endpoint documents, including parameters like charset and boundary. A 415 means the server refuses that media type; send the exact registered type it accepts and retry.

Advertisement
Ad slot · ref-in-article

Try the JSON Formatter

Beautify, validate and minify JSON with clear error messages.

Open tool →