Amazon CloudFront
Developer Guide (API Version 2012-07-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Creating Streaming Distributions

This section describes how to configure on-demand streaming. If you're using Adobe Flash Player, Flowplayer, or JW Player for your media player, see the applicable tutorial instead:

Task List for Streaming Media Files

The following task list summarizes the process for creating a download distribution.

To Create a Streaming Distribution

  1. Create an Amazon S3 bucket for your media files. If you are using a different Amazon S3 bucket for your media player, create an Amazon S3 bucket for the media player files, too.

    The names of your buckets must be all lowercase and cannot contain spaces.

  2. Choose and configure a media player to play your media files. For more information, refer to the documentation for the media player.

  3. Upload the files for your media player to the origin from which you want CloudFront to get the files. If you are using an Amazon S3 bucket as the origin for the media player, make the files (not the bucket) publicly readable.

  4. Create a download distribution for your media player. (You can also use an existing distribution.) For more information, see Creating Download Distributions.

  5. Upload your media files to the Amazon S3 bucket that you created for the media files, and make the content (not the bucket) publicly readable.

    Important

    Media files in a Flash Video container must include the .flv filename extension, or the media will not stream.

    You can put media player files and media files in the same bucket.

  6. Create a streaming distribution for your media files:

  7. Configure your media player. For more information, see Configuring the Media Player.

If you have trouble getting your content to play, see Troubleshooting Streaming Distributions.

Creating a Streaming Distribution Using the CloudFront Console

The following procedure explains how to create a streaming distribution using the CloudFront console. If you want to create a streaming distribution using the CloudFront API, go to POST Streaming Distribution in the Amazon CloudFront API Reference.

By default, you can create a combined total of 100 download and streaming distributions for each AWS account. To request a higher limit, go to http://aws.amazon.com/cloudfront-request/.

To create a streaming distribution using the CloudFront console

  1. Sign in to the AWS Management Console and open the Amazon CloudFront console at https://console.aws.amazon.com/cloudfront/.

  2. Click Create Distribution.

  3. On the first page of the Create Distribution Wizard, click Streaming, and click Continue.

    Select Streaming as the distribution type.
  4. Specify settings for the distribution. For more information, see Values that You Specify When You Create or Update a Streaming Distribution.

    Distribution settings, part 1

    Define cache behavior.

    Distribution settings, part 2

    Define cache behavior.
  5. Click Create Distribution.

  6. After CloudFront creates your distribution, the value of the Status column for your distribution will change from InProgress to Deployed. If you chose to enable the distribution, it will then be ready to process requests. This should take less than 15 minutes.

    The domain name that CloudFront assigns to your distribution appears in the list of distributions. The domain name also appears on the General tab for a selected distribution.