Back

Blog details

HLS vs MPEG-DASH: Differences and When to Use Each

AIOZ Network
6 min readAugust 16, 2026
aioz-streamexplainerdeveloper-apis
HLS vs MPEG-DASH: Differences and When to Use Each, AIOZ Stream knowledge hub cover

HLS and MPEG-DASH both stream adaptive video over plain HTTP, and they differ mainly in manifest format, Apple device support and DRM. HLS comes from Apple, uses .m3u8 playlists and plays natively on iPhone. MPEG-DASH is an ISO standard with an XML .mpd manifest, played through a JavaScript player.

TL;DR:

  • Both formats cut video into short segments at several bitrates and let the player switch between them, so viewers see the same adaptive behavior.
  • HLS is the safe choice for Apple devices and the only route to FairPlay DRM. DASH is codec-agnostic and common on Android, smart TVs and Chromecast.
  • You rarely have to choose: CMAF lets one set of fragmented MP4 segments serve an HLS playlist and a DASH manifest at the same time.
  • On AIOZ Stream you pick hls or dash per rendition, and the video detail returns a manifest URL and a hosted player URL for each format.

Updated Nov 30, 2026: sources linked in place, a three-rendition worked example added, the embed snippet replaced with the docs' HLS and DASH playback fields.

What is the difference between HLS and MPEG-DASH?

Both protocols run over HTTP, cut video into segments listed in an index file, and switch bitrate as the connection changes. Because both use ordinary web servers and ports, they pass through firewalls and CDNs, and on AIOZ Stream through peer delivery nodes, so the differences sit in the details below. WebRTC, RTMP and SRT, the other streaming protocol families, solve different problems.

HLSMPEG-DASH
Created byApple; published as IETF RFC 8216MPEG; international standard ISO/IEC 23009-1
Manifest.m3u8 text playlists (a master playlist plus one media playlist per rendition).mpd XML file (Periods, Adaptation Sets, Representations)
Segment containersMPEG-TS or fragmented MP4Usually fragmented MP4
CodecsTied to what Apple devices decode, most often H.264 and HEVCCodec-agnostic, so VP9 and AV1 ladders are straightforward
Apple devicesNative playback in Safari and iOSNo native playback on iPhone
Chrome, Firefox, EdgeUsually through a JavaScript player such as hls.jsThrough a JavaScript player such as dash.js or Shaka Player
Typical segment length6 seconds by default2 to 10 seconds, ideally 2 to 4
DRMFairPlay on Apple devicesWidevine and PlayReady, via Common Encryption
Low-latency modeLL-HLSLow-latency DASH with chunked CMAF
On AIOZ Streamtype: 'hls', container mpegts or mp4type: 'dash', container fmp4

The manifest is the difference you'll touch most as a developer, because it's the file your player reads first. Take one video with three renditions, 360p, 720p and 1080p. In HLS, it takes four M3U8 files: a master playlist listing each rendition with its bandwidth, plus one media playlist of segment URLs per rendition. DASH puts the same video in one XML MPD, with the three renditions as Representations inside a video Adaptation Set.

Diagram: the same renditions described two ways. HLS uses a master .m3u8 playlist pointing to one media playlist per rendition; MPEG-DASH uses one .mpd file with Adaptation Sets and Representations. With CMAF, both can point to the same fragmented MP4 segments.
One set of renditions, two manifest formats. With CMAF, both manifests can share the same segment files.

Which is better, HLS or MPEG-DASH?

Neither format gives a better picture, since the same encode looks the same in both, so the choice comes down to your audience and your DRM needs. To compare two encodes of your own, use a perceptual score such as VMAF.

  • Pick HLS when iPhone and Safari viewers matter, when you need FairPlay, or when you want one format that plays with the least setup.
  • Pick DASH when your audience is mostly Android, smart TVs or Chromecast, when you want VP9 or AV1 ladders, or when your DRM stack is built on Widevine and PlayReady.
  • Ship both when you serve every kind of device, which is what most large services do. CMAF makes that cheaper than it sounds (see below).

Latency is no longer a reason to pick one over the other, although the defaults differ. Standard HLS with 6-second segments runs well behind real time, but LL-HLS and low-latency DASH both cut that by sending partial segments. Below about a second, neither fits, and WebRTC takes over.

Can you use HLS and DASH together?

Yes, and the usual way is CMAF (the Common Media Application Format). RFC 8216 allows HLS segments in fragmented MP4 as well as MPEG-TS, and fragmented MP4 is DASH's usual container too. Package your renditions once as CMAF segments and write manifests for both formats that point at the same files. For the three-rendition video, 10 minutes cut into 6-second segments is 600 / 6 = 100 segments per rendition, 300 in all. Packaged separately for each format, that's 600 segment files to store and cache; packaged once as CMAF, it's 300 plus five small manifests (four .m3u8 files and one .mpd).

DRM can follow the same path. HLS encrypts fMP4 segments with the cbcs scheme of Common Encryption, so one CMAF set, encrypted once with cbcs, can be signalled in both manifests and serve every device. FairPlay accepts only cbcs, and Widevine and PlayReady now support it as well.

How HLS and DASH players switch quality

Once the player has a manifest, HLS and DASH behave the same way. The player reads the list of renditions, measures recent download speed and how full its buffer is, and requests the next segment at the highest rendition it can sustain. In the three-rendition video, that's 360p, 720p or 1080p. Then it measures again and repeats the loop every few seconds for the whole session. In a browser, that loop runs in JavaScript on top of the video element and Media Source Extensions.

Diagram of the adaptive player loop: read the manifest, measure throughput and buffer, pick the highest sustainable rendition, fetch the next segment, repeat
The adaptive loop runs the same way for HLS and DASH.

Weighing both signals keeps one slow segment from triggering a downshift, and frequent switches hurt viewers even when nothing stalls. The throughput, buffer and hybrid algorithms that make this call belong to the player, not the format.

How the AIOZ Stream player handles HLS and DASH

The AIOZ Stream player supports both HLS and MPEG-DASH and adjusts quality to each viewer's connection. On the encoding side, you choose the format per rendition in the qualities array of the create request: type hls with an mpegts or mp4 container, or dash with fmp4. The container must match the type.

For the three-rendition video, the docs' sample response from Get video detail lists the same 360p, 720p and 1080p qualities. Its assets object carries a manifest URL and a hosted player URL for each format (an excerpt of the docs sample, not run):

GET https://api.aiozstream.network/api/media/video_id

"assets": {
  "hls_url": "https://api.aiozstream.network/api/media/video_id/m3u8",
  "hls_player_url": "https://embed.aiozstream.network/vod/hls/video_id",
  "dash_url": "https://api.aiozstream.network/api/media/video_id/manifest",
  "dash_player_url": "https://embed.aiozstream.network/vod/dash/video_id",
  "mp4_url": "https://api.aiozstream.network/api/media/video_id/mp4"
}

The hls_url and dash_url are the manifests your own player, such as hls.js, dash.js or Shaka Player, would load. The two player URLs are the hosted embeds, and the response also returns a ready-made hls_iframe and dash_iframe.

The takeaway: let your audience pick the format. The Analytics API breaks views down by operating system and browser, so your iOS and Safari share tells you whether HLS alone covers you or a DASH rendition set is worth adding.

FAQ

Does Safari support MPEG-DASH?
Not natively on iPhone, which is why HLS is the format to use when Apple devices are a large part of your audience.

Does MPEG-DASH give better video quality than HLS?
No. Picture quality comes from the encode, so the same renditions look the same whichever manifest points to them and whichever player reads it.

Which has lower latency, HLS or DASH?
In their low-latency modes they are close: LL-HLS and low-latency DASH both send partial segments to cut delay.

Can AIOZ Stream output both HLS and DASH?
Yes, because you set type per rendition when you create the video, and the finished video returns an hls_url and a dash_url.

Do I need DASH to use Widevine?
Not anymore in most setups, because CMAF segments encrypted with cbcs can carry Widevine, PlayReady and FairPlay through either manifest.

Is HLS an open standard?
HLS is published as an informational IETF RFC (8216) and is widely supported, while MPEG-DASH is a formal ISO/IEC standard.

References

We only send updates when meaningful changes ship, and you can unsubscribe anytime

Related Content

blog thumbnail

What Is MPEG-DASH? How the MPD Manifest File Works

MPEG-DASH streams adaptive video over HTTP from an XML MPD file. See a real MPD: Periods, AdaptationSets, Representations, segment addressing and live MPDs.

aioz-stream
8 min readDecember 04, 2026
blog thumbnail

What Is CMAF? The Common Media Application Format Explained

What is CMAF? The ISO format that packages video as fragmented MP4 so one set of files serves HLS and DASH, with its chunks, brands and low-latency role.

aioz-stream
8 min readDecember 01, 2026
blog thumbnail

CBR vs VBR vs CRF and When to Use Each Rate Control Mode

CBR vs VBR vs CRF explained: what each video rate control mode holds fixed, how maxrate and bufsize cap it, our x264 test results, and which mode to use where.

aioz-stream
7 min readNovember 27, 2026
blog thumbnail

Live Streaming API Tutorial for Sessions and Real-Time Stats

A live streaming API tutorial for AIOZ Stream: create a session, push RTMP, poll real-time stats every 5 to 30 seconds, then list the saved recordings.

aioz-stream
7 min readNovember 24, 2026
blog thumbnail

Restream to Multiple Platforms With AIOZ Stream Multicast

Restream to multiple platforms by sending one feed to a relay. Learn the bandwidth math, platform rules and how AIOZ Stream multicast forwards your RTMP stream.

aioz-stream
6 min readNovember 20, 2026
blog thumbnail

MPEG-TS vs fMP4 for HLS Segments and When to Use Each

MPEG-TS vs fMP4 for HLS: how 188-byte TS packets and fMP4 init segments differ, what each costs in overhead, which codecs need fMP4, and when TS still fits.

aioz-stream
7 min readNovember 17, 2026