Note: this post applies to CloudBerry Explorer 1.7.2 and later.
Amazon CloudFront’s new streaming feature allows you to stream your content directly from Amazon s3 bucket. New version of CloudBerry Explorer helps to configure a streaming distribution and generate URLs for streaming content as well as HTML code for your video player.
How to configure Streaming Distribution
Configuration is easy and straightforward. First, select a bucket, right click it and select Streaming option in the context menu.
Click Enable Streaming Distribution checkbox and click ok. This is the only necessary step. You can also optionally enter CNAMEs and Comment. Check out our blog post for more info on how to configure CNAMEs.
By this time you have configured your distribution for streaming. Note that the bucket configured as a streaming distribution shows up with a new icon
How to generate streaming URLs
Select the file you want to generate a streaming URL for and click Web URL button on the toolbar. Web URL dialog will recognize that you are creating a URL for streaming distribution and enable corresponding options. One thing you should be able to do is to create RTMP URLs to embed them in the video player HTML code. Just select RTMP URL type and you are ready to copy the URL.
How to generate an HTML code for the player
Those familiar with streaming and players may want to skip this section but we would like to show how easy it is to embed the player on your website or blog and start streaming directly from CloudFront distributions.
There are a number of free players on the market and here we are going to demonstrate how to use JW Player (non-commercial version comes with a watermark, if you don’t like it you can buy it)
Anyways, if you choose an HTML option as shown on the screen the result will come in the form of HTML code for JW Player . You can copy and paste this code onto your blog or the website.
Note: You will have to download a Flash client, such as the JW Player and store the client in a web-accessible location. If storing in your Amazon S3 bucket, you can either serve it out of a CloudFront HTTP distribution or serve it directly from Amazon S3. You can't, however, use your same streaming distribution to serve both the client and the video. You'll need also to create a crossdomain.xml file to allow the client and video to come from separate domains.
Here's an example of the most permissive cross-domain XML:
You can download the sample crossdomain.xml file here (right click and click Save As)
You can update the code for your player using update HTML template link. Let’s say you want to use something other than JW Player and you can modify the template for your favorite player.
Besides, there is an easy to use code generation wizard on the Longtail Video website. We recommend that you use the wizard to generate your html code if you need more advanced options like player style and size. Full discussion of all the options is well outside of the scope of this article. Just make sure you select flvplayer with an rtmp stream
There is another freeware player that we want to mention for completeness: Flowplayer also comes in several editions and you can use the free one. Note that we currently don’t support generating the HTML code for the Flowplayer.
CloudBerry S3 Explorer PRO is a Windows program that helps managing Amazon S3 storage and CloudFront . You can download it at http://cloudberrylab.com/ It is currently in beta and free for all users. You can download it at http://cloudberrylab.com/
Like our products? Please help us spread the word about them. Learn here how to do it.