Setting up a Media Player

Setting up a HLS or MPEG-DASH-compatible media player requires pointing it to a live stream via a playback URL. This playback URL may be constructed using either of the following types of URL:

To construct a playback URL (CDN URL)

  1. Navigate to the Dynamic Cloud Packaging - Live page. ClosedHow?From the main menu, navigate to HTTP Large | HTTP Streaming | Dynamic Cloud Packaging.

  2. If the encoder was configured to publish to a relative path, append the same relative path to the playback URL.

    Learn more.

  3. Replace "<streamName>" with the stream name defined in the encoder's publishing session.

    If a stream name contains a suffix, then it should be appended after the last comma.

    Multiple Streams

    Use the following syntax to playback multiple streams of varying quality (i.e., bit rates):

    BaseStreamName,BitRate1,BitRate2,BitRateN,.FileNameExtension

    Learn more.

  4. Verify that the playback URL looks similar to one of the following URLs:

    HTTP Live Streaming (Dynamic Streaming):

    http://wpc.0001.{Base Domain}/240001/myinstance/mystream,750,500,250,.m3u8

    MPEG-DASH (Dynamic Streaming):

    http://wpc.0001.{Base Domain}/240001/myinstance/mystream,750,500,250,.mpd

To construct a playback URL (Edge CNAME URL)

  1. Create an edge CNAME configuration.

    1. Make sure that the Origin Directory option is set to:

    2. Wait an hour for this edge CNAME configuration to take effect.
    3. Add the corresponding CNAME record via a DNS service provider.
  2. Construct a playback URL using the following syntax:

    http://EdgeCNAME/InstanceName/StreamName.ext
    1. Replace EdgeCNAME with the name (e.g., live.mydomain.com) of the edge CNAME configuration created in the previous step.
    2. Replace InstanceName with the name of the desired instance.

      View a list of instance names from the Dynamic Cloud Packaging - Live page.

    3. If the encoder was configured to publish to a relative path, then insert it into the playback URL as indicated below.

      http://EdgeCNAME/InstanceName/RelativePath/StreamName.ext

      Learn more.

    4. Replace StreamName with the stream name defined in the encoder's publishing session.

      If a stream name contains a suffix, then it should be appended after the last comma.

      Multiple Streams

      Use the following syntax to playback multiple streams of varying quality (i.e., bit rates):

      BaseStreamName,BitRate1,BitRate2,BitRateN,.FileNameExtension

      Learn more.

    5. Replace ext with the file extension corresponding to the desired streaming solution.

      HLS playback:

      .m3u8

      MPEG-DASH playback:

      .mpd
  3. Verify that the playback URL looks similar to one of the following URLs:

    HTTP Live Streaming (Dynamic Streaming):

    http://live.mydomain.com/myinstance/mystream,750,500,250,.m3u8

    MPEG-DASH (Dynamic Streaming):

    http://live.mydomain.com/myinstance/mystream,750,500,250,.mpd

HTTPS Streaming

Live streams may be served over HTTPS. The two main benefits of streaming content over HTTPS are:

  1. It allows end-to-end encryption. This ensures secure communication between the viewer and the CDN.
  2. It improves the user experience by eliminating the web browser-generated security warning that pops up when a HTTPS web page contains content delivered over HTTP (e.g., audio/video).

An important caveat to HTTPS streaming is that only certain media players (e.g., iOS devices and QuickTime) support this capability. Refer to the media player's documentation to find out whether it supports streaming over HTTPS.

Use encrypted HLS to apply additional security to your live streams.
Learn more.

Setup

Setting up HTTPS streaming involves the following steps:

  1. Perform one of the following steps:

    • Certificate Provisioning System

      Create a TLS certificate for the HTTP Large platform.

      Learn more.

    • Legacy HTTPS

      Contact your CDN account manager to request a TLS certificate for the HTTP Large platform.

      Learn more.

  2. Once the TLS certificate has been installed on our network, create or update an edge CNAME for the HTTP Large platform.

    Set the edge CNAME's Origin Directory option to:

  3. From your DNS service provider, update a CNAME record to point the edge CNAME to the hostname provided by your CDN account manager.

    Learn more.

  4. Point the desired media player to a playback URL that leverages the above edge CNAME.

    Learn more.

Basic Playback URL Information

Basic information on playback URLs is provided below.

Single Stream

Configure a media player to playback a specific stream by modifying the desired instance's playback URL to point to the stream generated by the encoder. This stream name should exclude the specified live authentication key.

Encoder's Stream Name:

StreamName?LiveAuthenticationKey

Playback URL's Stream Name:

Multiple Streams (Dynamic Streaming)

Encoding multiple streams of varying quality and then referencing them within a playback URL allows a 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 stream that provides the highest bit rate quality that the client can support without causing buffering or stuttering.

This capability requires the following:

Syntax

The player URL for multiple streams must identify each stream generated by the encoder. Multiple streams can be specified within a single URL by following the file naming conventions described below.

The terms prefix and suffix refer to the portions of the stream name that appear before and after, respectively, the %b parameter.

Filename Conventions: