Setting up a HLS or MPEG-DASH-compatible media player requires pointing it to a valid playback URL. A playback URL may be constructed from the base CDN URLs provided on the Dynamic Cloud Packaging - VOD page.
Constructing a playback URL involves the following steps:
Copy a base CDN URL that corresponds to the desired origin typeCDN storage or customer origin from the Dynamic Cloud Packaging - VOD page.
Append the filename of the desired asset(s).
A media player can point to one or more assets. The syntax for specifying a filename varies according to whether a single or multiple assets are defined in the URL.
Single asset syntax:
Multiple assets syntax:
Append either a HLS or MPEG-DASH file extension.
HLS playback:
MPEG-DASH playback:
Verify that the playback URL looks similar to the following URL:
Sample playback URL:
Alternatively, a friendlier player URL may be generated by creating an edge CNAME configuration.
Learn more.
A single H.264 asset may be streamed from CDN storage or a customer origin server.
The bit rate at which this asset was encoded determines playback quality.
Syntax:
CDN Storage:
Customer Origin:
Edge CNAME URL (CDN Storage Only):
CDN Storage (HLS):
Customer Origin (MPEG-DASH):
Edge CNAME URL (CDN Storage Only):
Specifying multiple H.264 assets within a playback URL allows the media player to vary the stream's bit rate quality to provide an optimal viewing experience. Specifically, the media player will analyze a user's environment at frequent intervals and dynamically choose the asset that provides the highest bit rate quality that the client can support without causing buffering or stuttering.
This capability requires the following:
Follow these conventions when specifying multiple assets within a single playback URL:
The terms "prefix" and "suffix" refer to the portions of the filename that appear before and after, respectively, the bit rate level.
All filenames must have a common prefix.
Example:
The end of the prefix should be indicated with a comma. This should be followed by the bit rate level for each desired stream as a comma-delimited list in the filename. Append a comma after the final bit rate level.
Example:
A suffix identifies the portion of the filename that extends beyond the bit rate level.
The suffix for the following sample filenames is "kbps."
Append the suffix after the last comma.
Example:
CDN Storage:
Customer Origin:
Edge CNAME URL (CDN Storage Only):
CDN Storage:
Customer Origin:
Edge CNAME URL (CDN Storage):
This sample scenario illustrates how to construct a player URL that can reference multiple H.264 assets.
H.264 Assets (CDN URLS):
http://wpc.0001.{Base Domain}/00001/videos/fly_100Kbps.mp4
http://wpc.0001.{Base Domain}/000001/videos/fly_200Kbps.mp4
http://wpc.0001.{Base Domain}/000001/videos/fly_300Kbps.mp4
Sample Playback URL (HLS):
http://wpc.0001.{Base Domain}/040001/videos/fly_,100,200,300,Kbps.mp4.m3u8
Sample Playback URL (MPEG-DASH):
http://wpc.0001.{Base Domain}/040001/videos/fly_,100,200,300,Kbps.mp4.mpd
Edgecast CDN