Serve live and on-demand traffic from one environment
The settings that make Adaptive Media Delivery fast — Segmented Media Delivery Mode, Content Characteristics, Origin Characteristics — used to be available only in the default rule set, which applies to every request. That forced a hard choice: one configuration per use case. Live in one, on-demand in another. Low-resolution in one, high-resolution in another.
Mixed Mode Configuration removes that limit. You can place these use case-based behaviors in additional rules with their own match criteria, and run several delivery profiles from a single environment.
When to use this
- You deliver both live and on-demand media and don't want to maintain two configurations.
- You want different optimization settings for different resolutions, catalogs, or segment sizes.
- You need different origins with different authentication methods behind one service hostname.
- You're setting up origin failover, which is built on this.
The use case-based behaviors
These three are required in the default rule set. Mixed Mode lets you also place them in additional rules:
How to enable it
There's nothing to switch on. Mixed Mode is available in a new environment version — you can't apply it to an existing version in place. Create a new version, apply your changes there, test on staging thoroughly, and keep the earlier working version available to roll back to.
Rule logic you have to internalize first
The rule configuration evaluates top down, and the bottom-most rule takes precedence. The default rule set is processed last and applies to all requests. Three consequences:
- The use case-based behaviors are still required in the default rule set. If you add one to a custom rule and a request doesn't match that rule, the default rule set's version of that behavior applies.
- Rule logic trickles down. With two custom rule sets plus the defaults all carrying Content Characteristics: if the bottom rule doesn't match, the one above it is checked; if that doesn't match either, the default applies.
- The default rule set still applies to everything. Behaviors that are in the defaults but not in your matching custom rule are applied anyway. Behaviors in both are taken from the custom rule.
Pattern 1: separate service hostnames for live and on-demand
Two service hostnames, each mapped to its own edge hostname, with the default rule set handling live and a custom rule handling on-demand.
| Hostname | Content | Media delivery type |
|---|---|---|
baseball-highlights-live-media.com | Live | Live |
baseball-highlights-ondemand-media.com | On demand | On Demand |
1 - Set up your live media
Create your Media Services Live streams and configure an origin for them, noting the Primary Hostname.
2 - Set up the hostnames
- Create Standard TLS certificates for each hostname before you create the environment — provisioning takes time. Each hostname has to appear as the CN or a SAN in its certificate.
- Create the environment.
- Create two separate Standard TLS service hostname to edge hostname associations. Select Media delivery type and set the mode per hostname — Live for the live hostname, On Demand for the VOD one. See Map VOD, live, and event traffic to the right edge map.
3 - Configure the default rule set for live
| Behavior | Settings |
|---|---|
| Origin Server | Origin Type: Media Services Live. MSL Origin: the Primary Hostname you noted. |
| Segmented Media Delivery Mode | Mode: Live, with advanced options shown. Live Type: Linear or Event. Segment Access Time Mode: Configurable with a duration if you know it, otherwise Unknown. |
| Origin Characteristics | Origin Location: the region closest to the encoder distributing the MSL content. Authentication Method: Akamai Origins - Auto, Others - None. |
| Content Characteristics | Catalog Size: Other. Content Type: the output quality of your live video. Popularity Distribution: Other. Enable HLS/HDS/DASH/CMAF: Yes for compatible stream types, No for the rest. Segment/Fragment Duration: 2s, 4s, 6s, 8s, or 10s, with Origin Object Size set to Unknown. |
| Client Characteristics | Client Location: the region that best represents your live audience. |
4 - Add a rule for on-demand requests
- Add a rule from the Blank Rule Template and name it, for example, "VoD Delivery Rule".
- Add a match: Hostname / is one of /
baseball-highlights-ondemand-media.com. - Add the behaviors:
| Behavior | Settings |
|---|---|
| Origin Server | Origin Type: NetStorage. NetStorage Account: the account holding the VOD content. |
| Origin Characteristics | Origin Location: the location matching your NetStorage account. Authentication Method: Akamai Origins - Auto, Others - None. |
| Segmented Media Delivery Mode | Mode: On Demand. |
| Content Characteristics (optional) | Tune for your VOD content. You can omit it and inherit the live settings from the defaults, but VOD usually wants different optimization. |
| Client Characteristics (optional) | Only include it if the VOD audience differs from the default. |
What happens at request time
- A request to
baseball-highlights-live-media.comdoesn't match the VoD rule's criteria, so everything in that rule is skipped and the default rule set delivers the live content. - A request to
baseball-highlights-ondemand-media.commatches the VoD rule, which is checked first. Behaviors present in both the VoD rule and the defaults are taken from the VoD rule. Behaviors present only in the defaults — Client Characteristics, if you left it out — still apply.
This applies to all behaviors in either rule, not just the use case-based ones.
Pattern 2: one hostname, different URL paths
Same idea, but matching on a path component instead of a hostname. One service hostname, baseball-highlights-media.com:
- Live:
https://baseball-highlights-media.com/LIVE/{media} - VOD:
https://baseball-highlights-media.com/VOD/{media}
Set up the live media and the hostname as in pattern 1 (one certificate, one hostname association), configure the default rule set for live using the same table, then add the VOD rule with a different match:
- Path / is one of /
/VOD/*
Everything else is identical. At request time, /LIVE/* falls through to the default rule set; /VOD/* matches the custom rule first.
Pattern 3: different optimization for different resolutions
You don't need two origins to benefit from Mixed Mode. Here a single custom origin serves HLS VOD at two resolutions, distinguished by path:
https://baseball-highlights-media.com/HLS-low/{media}— lower resolutionhttps://baseball-highlights-media.com/HLS-high/{media}— higher resolution
Add a rule for the low-resolution path matching Path / matches one of / /HLS-low/*, containing only Content Characteristics:
- Catalog Size: Unknown
- Content Type: Standard Definition (480i/p or 720p)
- Popularity Distribution: Unknown
- Enable HLS: Yes; Enable HDS, Enable DASH, Enable Smooth: Off
- Segment Duration: 4s
- Origin Object Size: Unknown
Configure the default rule set for everything else — your custom origin in Origin Server, Mode set to On Demand, and Content Characteristics tuned for high definition with a 10s segment duration.
At request time, /HLS-low/* uses the custom rule's Content Characteristics and inherits every other behavior from the defaults. /HLS-high/* doesn't match, so it uses the defaults throughout.
Client Characteristics in the default rule setAs of 22 September 2026, Client Characteristics is no longer included in the default rule set. Add it explicitly where you need it.
Verify your origin setup
If you're combining live and on-demand in one environment, check that each rule's origin configuration is internally consistent:
| Media | Segmented Media Delivery Mode | Origin Type |
|---|---|---|
| VOD | On Demand | Your Origin or NetStorage |
| Live | Live | Media Services Live or Your Origin |
Configure Origin Characteristics to match in each case.
Known limitations
| Limitation | Detail |
|---|---|
| Origin Characteristics needs Origin Server in the same rule | Origin Characteristics must apply to the origin named in the same rule, so you can't put it in a rule on its own. |
| Signature Header Authentication isn't supported in a rule when NetStorage is the default origin | With NetStorage in the default rule set and a custom origin in a lower rule, NetStorage authentication headers could leak to the custom origin. Signature Header Auth is disabled in rules to prevent this. |
| Files delivered by another product aren't optimized | Non-segmented media files in your configuration, for example. |
| Not supported with Akamai Cloud Embed (ACE) | N/A |
| Watermarking has requirements that affect Mixed Mode | Watermarking is on-demand only, so in a mixed MSL/non-MSL environment put it in the non-MSL rule, never the default rule set. Prefetching isn't recommended alongside it. See Trace leaked content with forensic watermarking. |
Related
Updated about 1 hour ago
