Setting up Flowplayer with Amazon Cloudfront and token access

Wed Apr 21, 2010

Amazon has added token based access to the cloudfront rtmp servers here:

This means you can put some control around who accesses your content.

Here is one way to set up flowplayer to use this:

<script type="text/javascript" src=""></script>
<div class="player" id="id_flowplayer" style="width:640px;height:320px;">
<script language='javascript'>
flowplayer("id_flowplayer", "", {
 log: { level:"debug",filter:'org.flowplayer.rtmp.*' },
 clip: {
   // This is the path to the video file
   url: encodeURIComponent('flv:test.mp4?Expires=1258237200&Signature=TBD&Key-Pair-Id=PK123456789754'),
   provider: 'aws'
 // streaming plugins are configured under the plugins node
 plugins: {
   // here is our rtmp plugin configuration, configured for AWS
   aws: {
      url: '',
      // netConnectionUrl defines where the streams are found
      netConnectionUrl: 'rtmp://your aws'