|
A distribution is a link between an
Amazon S3 Bucket
(the origin server) and a domain name (assign by
Amazon CloudFront
). You use this new domain name in place of standard Amazon S3 references.You serve the client to end users through a basic distribution, which serves HTTP content. You can serve your streaming media content to the client through a special kind of distribution known as a
STREAMING DISTRIBUTION
.
Streaming distributions are designed specifically to serve streaming media files over RTMP.
Create Streaming Distribution:
Once you've stored your objects in your origin server (Amazon S3 Bucket), inorder to make Amazon CloudFront recognize your objects , you need to create a distribution, which is a link between an Amazon S3 bucket (the origin server) and a domain name (which Amazon CloudFront automatically assigns). To stream content, you need to deliver two types of files to your end users: your streaming media files and the client that will play them.
How does it work?
-
Put your client in the client bucket, and make the client (not the bucket) publicly readable. And Create a public distribution for your client.
-
Put your streaming content in the streaming bucket, and make the content (not the bucket) publicly readable and create a streaming distribution for your media containing bucket.
-
Create a crossdomain.xml file and place it in the root of the bucket holding the streaming content (not the bucket holding the client, if it's a different bucket). Make the file publicly readable. CloudFront supplies a default file that allows all domains to access the media files in your streaming distribution. If you implement a more restrictive crossdomain.xml file, CloudFront ignores default file.
-
Create URLs for your streaming content files.
Note :
The client bucket and streaming bucket can be the same bucket, or different ones.
Follow the given steps to Create Streaming Distribution:
-
Run Bucket Explorer.
-
Choose "Distribution" icon from Bucket table toolbar or you can do the same by selecting "Manage Distribution" option from right click menu option of any bucket.
-
It displays a "List distribution" window having list of already created distributions.
-
To create new distribution choose "New" icon from toolbar of List distribution window.
-
It opens new window to create distribution, now you need to set configuration for streaming distribution.
To set configuration you need to give following information:
-
Select bucket name from drop down list.
-
Selete distribution type "STREAMING".
-
To create disabled distribution, deselect check box "Enable Distribution", by default it is enabled.
-
If you want to give comments for distribution then write comment in comment text field.
-
Add CNAME(s) to list box by clicking "+" button and you can remove CNAME(s) by clicking "-" button. You can give maximum up to 10 CNAME(s).
-
After setting the entire values for Streaming Distribution click on "Create" button, It will create Streaming distribution for your specified bucket.
|
|
|
Related Topics
:
|
|
|