This page accompanies the tutorial article How to Get Started with Amazon Cloudfront Streaming at streamingmedia.com.
The example below references an MP4 video file that lives in an Amazon S3 storage bucket. A Cloudfront Distribution has been set up to stream content from the S3 bucket via rtmp:// using a CNAME on this domain.
[Media file: 460kbps, H.264/AAC]
Using the JW FLV Player 5.x, the EMBED code looks like this. Note the type, streamer, and file parameters set in the flashvars. streaming.learningapi.com is the CNAME I created for my Cloudfront distribution, /cfx/st/
is the standard path to Cloudfront Flash Media Servers.
<embed flashvars="type=rtmp&streamer=rtmp://streaming.learningapi.com/cfx/st/&file=magic_kite_scene1.mp4"> id="xvideo-3715" type="application/x-shockwave-flash" width="320" height="260" src="mediaplayer-5-viral/player-viral.swf?4_6_485" quality="high" allowfullscreen="true" wmode="transparent" </embed>
You can read a complete tutorial on setting up AWS, S3, and Cloudfront streaming in How to Get Started with Amazon Cloudfront Streaming at streamingmedia.com. Full Cloudfront Documentation is available in the AWS Cloudfront Developer Guide