Method 2: "One to many"
This method implements Use Case-based Edge Mapping (UCEM) to optimize delivery of both on demand ("VOD") and live media using a single AMD property configuration.
Before you begin
This method also uses our Mixed Mode Configuration (MMC) feature. You should familiarize yourself with MMC and how it's applied. We recommend that you review How to use Mixed Mode with AMD.
Create the first edge hostname for VOD
We're using Property Manager to create the new property configuration for AMD. In it, we define multiple property hostname to edge hostname associations ("property hostnames"). The first enables "VOD" as its UCEM Use Case.
- Based on your desired level of delivery security, use the standard procedure ("wizard") to create a new proprety hostname. (In this example, we're using "myvideos-vod.com" as the hostname.)
- When you reach the Mapping
Solution phase of the wizard, ensure Use Case is
selected and set Segmented Media Mode to VOD.Note: If you also have Edge IP Binding on your contract, it's revealed here, too. You can't use both UCEM and Edge IP Binding in the same property hostname.
- Look at your new property
hostname and verify the Use Case ("VOD") has been applied. If it has, the edge
hostname that's used by this property hostname has been set to use an optimal
edge map for delivery of on demand content.
Create the second edge hostname for Live
Repeat the same process illustrated in the section above. However, when you reach the Mapping Solution phase of the wizard, ensure Use Case is selected and set Segmented Media Mode to Live. (In this example, we're using "myvideos-live.com" as the property hostname.)
Additional points to consider here:
- If you have Edge IP Binding on your contract, it can't be used with UCEM.
- If you created your edge hostname using the Edge Hostname Editor, the "Note:" above applies, but you need to select the edge hostname that has "Live" set as its Segmented media Mode use case.
Let's set up the Default Rule for Live
Now, we implement MMC to apply use case-based behaviors in separate rules. For this example, we'll start with the Default Rule for requests to the "Live" Use Case edge hostname.
The Segmented Media Delivery Mode behavior is automatically included in this rule, as a "use case-based behavior." To sync with the UCEM settings for the applicable edge hostname, set this to "Live."
There are additional required and optional settings to apply in the Default Rule:
- Advanced Options. With "Live" set as the Segmented
Media Delivery Mode, additional options are available via the Show Advanced Options
slider. Live media delivery is accomplished using Media Services Live (MSL), and these are
used when configuring it for use with AMD. They are
discussed in the Live Streaming with MSL 4.x and AMD - Getting Started
Guide.Important: These options only apply to the use of Akamai's Media Services Live product with AMD. (They cannot be used with your own custom live media configuration.)
- The Origin Server behavior. Here, you need to select Media Services Live as the Origin Type. 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 also covered in the Live Streaming with MSL 4.x and AMD - Getting Started Guide.
- Configure other behaviors in the Default Rule. Apply settings for each, as desired. Remember: Any behavior applied in the Default Rule applies to all requests. So, if you haven't set the same behavior in another rule, what's set for it here is applied. Review all of your behavior settings in the Default Rule and all subsequent rules.
Let's set up a new rule for VOD
Here, we'll add a subsequent rule—the "On demand UCEM delivery rule." We'll configure it to specifically field requests for the "VOD" use case edge hostname. Rule precedence in Property Manager dictates that a lower rule in the list is applied first, and its settings override matching settings in a rule higher in the list. So, requests to the VOD use case edge hostname:
- Read this rule and apply its settings first for on demand delivery.
- Read the Default Rule and apply any additional settings you've set here that weren't set in the On demand UCEM delivery rule. (This occurs because the Default Rule applies to all requests.)
Follow these steps to set up this rule:
- 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 ("On demand UCEM Delivery Rule") and press Enter.
- Click Add Match and set the fields
- is one of
- Select Items. Click this field and input the Property Hostname you associated with the "VOD" Use Case edge hostname (using the examples from this use case, this would be, "myvideos-vod.com").
- Click Add Behavior.
- Type "segment" in the Search available behaviors field to filter results, select Segmented Media Delivery Mode, and click Insert Behavior. Set Mode to "On demand."
- You also need to provide a proper Origin Server to serve your on demand content. (The Default Rule has "Media Services Live" set as its origin, and that won't work.) 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: For this use case, we're using "NetStorage."
- NetStorage Account: Click to select the NetStorage account associated with the Storage Group that houses the on demand content to be delivered.
- You can add more behaviors, including use case-based ones supported for use with MMC—Origin Characteristics, Content Characteristics, and Client Characteristics, as well as other recommended and optional behaviors. What you set here for any behavior will override what's set in the Default Rule for these same behaviors, when a request for on demand content is received.
- Save the property configuration.
Once you've completed and saved the property configuration, you need to:
- Activate it on the Staging network and (optionally)test it.
- Activate it on the Production network and
go live. At this phase, you update your DNS record to CNAME
your vanity hostnames for live and on demand requests to the applicable edge hostname you
- Requests to the vanity hostname for live content will be optimized to the "Live" UCEM edge map. They'll also ignore the "On demand UCEM Delivery Rule" and apply settings defined in the Default Rule.
- Requests to the vanity hostname for on demand content will be optimized to the "VOD" UCEM edge map. They also trigger the "On demand UCEM Delivery Rule" and use behaviors applied in it. Any additional, applicable behaviors set in the Default Rule are also applied.