Dec 16
How to setup AWS cloudfront streaming via RTMP
Today, amazon announced flash media server streaming support for video playback. Here's a few quick tips to help get started.
1. Create a streaming cloudfront distribution
You can setup your distribution using the AWS console or use my php tool, make sure that it's a "streaming" distribution as opposed to "download".
2. Setup your client to playback the streaming video
This wasn't obvious without reading the documentation. In order to playback your rtmp:// stream, you have to append "cfx/st" to your domain. So for example, rtmp://s5c39gqb8ow64r.cloudfront.net/mediafile.flv would become rtmp://s5c39gqb8ow64r.cloudfront.net/cfx/st/mediafile.flv
If you your file is in a folder within your S3 bucket, the custom folder name comes after the "cfx/st/"
That's pretty much it... Of course this all assumes you are familiar with setting up AWS S3 buckets and how cloudfront works. To read more about that go here.