Tailor manifests per device and network
Your packager produces one master manifest listing every rendition you encode. Every client gets that same list, whether it's a 4K TV or a phone on a congested cell. Manifest Personalization rewrites the manifest on the fly at the edge: it reorders renditions so the player starts on the right one, and filters out renditions the client shouldn't see at all.
The work happens at the edge, so your origin doesn't have to generate or store per-device manifest variants.
There's an EdgeWorkers alternativeYou can also build personalized VOD or live manifests and playlists programmatically with an EdgeWorkers function.
When to use this
- Your startup bitrate is wrong for a meaningful share of your audience — too high and they rebuffer, too low and the first ten seconds look bad.
- You need to cap quality for specific devices, regions, or network conditions.
- You want to offload manifest manipulation from your origin.
What's supported
| Format | Media | Configuration |
|---|---|---|
| HLS | Live and on demand | Self-service, via the Manifest Personalization rule |
| DASH | On demand only | Set up by your account representative via an advanced override |
DASH support is currently limited to bitrate targeting. Feature parity with HLS is expected in a future release.
Before you begin
Get it on your contract. Manifest Personalization isn't available by default. Contact your account representative to add it.
Manifest Personalization for HLS
Add the rule and set the match criteria
- Add a rule and select Manifest Personalization from the rule catalog.
- The criteria default to common HLS master manifest filenames. Add or remove names as needed.
- Set Enable Manifest Personalization to On.
Wildcards are allowed, carefullyYou can use wildcards in manifest filenames, for example
master-*.m3u8. Make sure your master manifest naming convention can't also match your media playlists and segments.
Then pick a Mode.
Best Practice mode (recommended)
Applies Apple's recommended settings automatically, per device class:
| Device | Identified by | Manifest modification | Equivalent query parameter |
|---|---|---|---|
| iOS cellular | User-Agent matching *iPhone*OS* or *iPad*OS*, and EdgeScape NETWORK_TYPE of mobile on the connecting IP | Preferred bitrate of 730 kbps | __b__=730 |
| iOS Wi-Fi | User-Agent matching *iPhone*OS* or *iPad*OS* | Preferred bitrate of 2000 kbps | __b__=2000 |
| tvOS (Apple TV) | User-Agent matching *AppleCoreMedia*Apple\ TV* | Preferred bitrate of 2000 kbps, and bitrates below 200 kbps excluded — Apple guidance says not to include the 145 kbps rendition | __b__=2000, b-in-range=200 |
The b in __b__ is preceded and followed by two underscore characters.
See Apple's HLS Authoring Specification for the source of these recommendations.
Manual mode
Define your own settings instead of the presets. Use any or all of:
- Preferred Bitrate (kbps). Controls which media playlist (
#EXT-X-STREAM-INF) is listed first in the manifest. The playlist closest to this value, within ±100 kbps, goes first; everything else keeps its position. - Bitrates to Keep (Filter IN). A comma-separated list of individual bitrates in kbps, for example
100,200,400. Only playlists within ±100 kbps of these values stay in the manifest. - Bitrates within Ranges to Keep (Filter IN). A comma-separated list of ranges in kbps, for example
100-400,1000-3000. Only playlists inside these ranges stay. Open-ended ranges work —1000-means 1000 kbps and up.
Filters run before the preferred bitrate is chosenIf you combine a filter with a preferred bitrate, the preferred bitrate is selected from the filtered list, not from the original manifest.
Examples
| Settings | Result |
|---|---|
| Preferred Bitrate: 1000 | The rendition closest to 1000 kbps (±100) becomes the first entry in the master manifest. |
| Preferred Bitrate: 1500 Bitrates to Keep: 1500, 2000 | Keeps the renditions closest to 1500 and 2000 kbps (±100 each), then picks the preferred bitrate from those two. |
| Preferred Bitrate: 1500 Bitrates to Keep: 1500, 2000 Bitrates within Ranges to Keep: 2500-3000, 3500- | Keeps the renditions closest to 1500 and 2000 kbps, plus everything in 2500–3000 kbps (exclusive of boundaries) and everything above 3500 kbps. Picks the preferred bitrate from that filtered set. |
Override per request with query parameters
Query string values take precedence over whatever you configured in the rule. This works in both Best Practice and Manual modes.
- Set Enable Query Param based Personalization to On.
- Have your clients request manifests with the appropriate query string values.
| Parameter | Effect |
|---|---|
__b__ | Sets the preferred bitrate in kbps. The closest playlist within ±100 kbps is listed first. |
b-in | Comma-separated bitrates in kbps to keep, within ±100 kbps of each. |
b-in-range | Comma-separated bitrate ranges in kbps to keep. |
?__b__=500&b-in=100,200&b-in-range=500-2000
Lock down who can use them
-
Secret Key for Honoring Query Params. Honors query parameters only when the request carries a matching token. Enter a key or generate one. You then use that key with the Token Auth 2.0 library to produce a token, appended as
?mper=<token>.Token Auth 2.0 SDKs are published with README instructions. Generating a token with the Python library:
python cms_edgeauth.py -n mper -w 31536000 -k abc123 -a '/*'-nis the token name,-wthe validity window,-kthe secret key,-athe access list. -
Transition Key. A secondary key for query parameter verification, used when rotating or retiring the primary secret key.
Advanced: debug headers
Set Show Advanced to On and enable debug headers. Requests for the HLS master manifest then return two extra headers:
| Header | Meaning |
|---|---|
Akamai-Manifest-Personalization-Config-Source | Where the applied operations came from: UI- (rule settings only), QUERY (query parameters only), or UI-QUERY (both). |
Akamai-Manifest-Personalization | Every operation applied to the request. For example: b-in=300,400&b-in-range=500-&__b__=600 |
Debug headers are only added for responses with status 200 and 400.
Manifest Personalization for DASH
MPer for DASH does bitrate targeting: you set an upper bitrate limit, and renditions above it are trimmed from the manifest. Requests above the maximum are downgraded to it.
Add it to your environment
Your account representative adds an advanced override — custom metadata inserted into your configuration's XML. Two things to agree with them:
- Your maximum bitrate. When a request matches, the manifest's
Representationelements are rewritten: one for your maximum (via itsbandwidthparameter) and others for lower buckets. Representations above the maximum are dropped. The maximum supported value is 10,000 kbps. - The match criteria. The rule matches requests for DASH manifest files — make sure your actual manifest filenames and extensions are covered.
Apply the limit from your player
Append b-upper-limit={#} to requests:
https://big-time-movies.akamaized.net/dash/MR/MultiResPer.mpd?b-upper-limit=2000
- Values are in kbps. DASH manifests express
bandwidthin bps; Akamai metadata handles the conversion. - Values round down into buckets.
b-upper-limit in this range | Bucket bitrate applied (kbps) |
|---|---|
| 1000 – 1999 | 1000 |
| 2000 – 2999 | 2000 |
| 3000 – 3999 | 3000 |
| 4000 – 4999 | 4000 |
| 5000 – 5999 | 5000 |
| 6000 – 7999 | 6000 |
| 8000 – 9999 | 8000 |
| 10000 + | 10000 |
- You can request anything below your configured maximum. With a maximum of 4,000 kbps you can still send
b-upper-limit=2000for a single request and get 2,000 kbps. - You can't exceed it. A
b-upper-limitabove your configured maximum still serves content, capped at your maximum.
Caveats for DASH
| Issue | Description |
|---|---|
| UTF-16 manifests need extra configuration | The service behind MPer for DASH doesn't support UTF-16 encoded manifests by default. It first attempts a regex replacement in UTF-8, then retries for UTF-16. Additional metadata can make this work — ask your account representative whether it applies in your environment. |
| Range headers are removed | The service isn't compatible with range requests; a Range header with MPer enabled returns 502. To avoid that, Range headers are stripped from MPer requests. |
| Manifests must be 1 MB or smaller | Larger manifests return a 5xx error. |
| FireTV devices may be affected | Dropping all Representation elements inside an AdaptationSet should also remove the now-empty adaptation set. Rarely, an empty one is left behind, and testing has shown FireTV playback can stop when that happens. |
Related
- Cap the rate at which content is served — limits transfer rate rather than available renditions
- Deliver live streams with low latency
Updated about 1 hour ago
