How to Get HLS Streaming Right
HTTP Live Streaming, a streaming protocol that splits video into short segments at several quality levels so players can switch quality as bandwidth changes.
On this page
The key figures
- Developer
- Apple
- Specification
- published as RFC 8216
- Adaptive bitrate
- players switch between renditions based on bandwidth
- Playlists
- M3U8 files list segments and renditions
Why this is worth getting right
HLS is the most widely supported adaptive streaming format, especially on Apple devices, and it underpins most self-hosted video streaming.
Do this, not that
Do
- Encode a ladder of resolutions and bitrates
- Align keyframes across renditions
- Serve segments through a CDN
- Include captions as WebVTT tracks
- Test playback on slow connections
Don’t
- A single high-bitrate rendition
- Misaligned keyframes causing switching glitches
- Serving segments from a slow origin
- Missing captions in the playlist
When to bring in help
Our advice Bring in help when self-hosting video for large audiences, or when playback stalls on mobile.
Where this comes from
- RFC Editor — RFC 8216 HTTP Live Streaming
- Apple Developer — HTTP Live Streaming
The figures and practices above come from the sources listed.
Working on something like this?
We take on Video Editing & Production work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.





