Live and on-demand: One Property Hostname, different URL paths
Here, you set up a single Property hostname to Edge hostname association ("Property hostname"), and configure access to live versus video on demand (VoD) content based on matching on a specific path component in the request.
Overview
In this scenario, we'll be fielding requests to a single Property hostname, "baseball-highlights-media.com" for both live and VoD content:
- Live Media. https://baseball-highlights-media.com/LIVE/{media}
- VoD Media. https://baseball-highlights-media.com/VOD/{media}
Media Services Live is used to distribute the live content, and the VoD content is stored in NetStorage for access.
Phase 1: Create the Property hostname
We need a new AMD property with one Property hostname for distribution content, and we also want to employ Standard TLS security for access.

The steps that follow outline what you need to do to create the Property hostname for this use case.
- You need a Standard TLS certificate set up for the Property hostname. This can take awhile to provision, so you should create it before you create the AMD property. You need to include your Property hostname as a CN or SAN in the certificate—"baseball-highlights-media.com."
- Create a new AMD property in Control Center.
- Set up a Standard TLS Property Hostname to Edge hostname association for "baseball-highlights-media.com."
Phase 2: Configure the Default Rule for Live content
At this phase, you need to set up the Default Rule to accommodate requests for live media using Media Services Live (MSL). You also need to set up a new live stream using MSL, outside of Property Manager. Both of these tasks—including proper and recommended settings for use case-based behaviors in the Default Rule—are covered in the Live Streaming with MSL 4.x and AMD - Getting Started Guide.
Taking the settings specified in that guide, behaviors in the Default Rule would be configured as follows:
Behavior | Options |
---|---|
Origin Server |
|
Segmented Media Delivery Mode |
|
Origin Characteristics |
|
Content Characteristics |
|
Client Characteristics |
|
Phase 3: Add a new rule for VoD content
To distribute VoD content, we'll configure a rule that targets requests to the Property hostname ("baseball-highlights-media.com") that include the "/VOD/" directory in the path.
- In the Property Configuration Settings click Add Rule.
- Ensure Blank Rule Template is selected (default) and click Insert Rule.
- Click the gear icon in the New Rule and select Edit Name. Input a desired name (for example, "VoD Delivery Path Rule") and press Enter.
- Click Add Match and set
the fields as follows:
- Path
- is one of
- Select Items. Click this field and input "/VOD/*" to indicate requests for the Property hostname (baseball-highlights-media.com) followed by the "/VOD" subdirectory, and then any object ("/*") in that directory.
- Click Add Behavior.
- Type "origin" in the Search
available behaviors field to filter results, select Origin Server,
and click Insert
Behavior. Set the options in this behavior as follows:
- Origin Type: NetStorage
- NetStorage
Account: Click to select the NetStorage account associated with
the Storage Group that houses the VoD content to be delivered.Tip: More information on the use of NetStorage as your origin can be found in "I selected NetStorage" in the Property Manager Help. Additionally, you could configure "Your Origin" (a custom origin). See I selected "Your Origin" in the Property Manager Help for additional information.
- Repeat Step 6, to add the
Origin
Characteristics, Segmented Media Delivery
Mode, Content Characteristics (optional), and Client
Characteristics (optional) behaviors.
Behavior Options Origin Characteristics Set the following options: - Origin Location: Set this to the geographic location that corresponds to the NetStorage Account you set in the Origin Server behavior.
- Authentication Method: Akamai Origins - Auto, Others - None
Note: These settings only apply if you've selected "NetStorage" as your Origin Server. If you're using a custom origin (I selected "Your Origin") you may need to configure these differently.Segmented Media Delivery Mode Set the following options: - Mode: On Demand
Content Characteristics Set these options to best fit the VoD content you're delivering to your end users, to optimize its delivery. Note: You could leave this behavior out of this rule to use the options you've set for it in the Default Rule. However, your VoD content may have different optimization requirements than your Live content. See Content Characteristics and AMD for detailed information on this behavior.Client Characteristics Set the following options: - Client Location: Select the geographic region that best represents the clients that will be accessing your VoD content.
Note: Only include this behavior if you want to use a different setting than what you've applied for Client Location in the Default Rule. (The Default Rule applies to all requests, so you don't have to include this behavior if you're happy with what's set there.)
What happens next?
First, you need to complete creation of the AMD property, optionally test it, and finally promote it to production for use.
Once live in production, request logic for your content works as follows:
- A request to "https://baseball-highlights-media.com/LIVE/*". The Default Rule—and all of its Media Services Live-based settings—is used for these requests. The match criteria you set in the VoD Delivery Path Rule is unique to requests that include "/VOD/" in the path. So all of the settings applied that rule are ignored.
- A request to
"baseball-highlights-media.com/VOD/*". The VoD Delivery Path Rule exists
last in the property, so it's checked first. Since the "/VOD/"
path matches this rule, all of its behaviors are applied. However, the Default
Rule applies to all
requests. So, the following also apply:
- With duplicate behaviors in both the VoD Delivery Path Rule and Default Rule, what's in the VoD Delivery Path Rule is used. For example, you set up "NetStorage" as your Origin Server for VoD, and "On Demand" for your Segmented Media Delivery Mode, so those are used for requests to the "/VOD/" path. Also, if you added the Content Characteristics behavior in this rule and configured unique settings for VoD media, these settings are used in place of what you've set for that behavior in the Default Rule.
- If you've set behaviors in the Default Rule that aren't in the VoD Delivery Path Rule, they're applied. For example, if you left out the Client Characteristics behavior from the VoD Delivery Path Rule, what you set in the Default Rule is used.
Note: The above points apply to all behaviors in either rule, not just the use case-based behaviors.