title: Streaming MP4 to iOS not working with JWPlayer and CloudFront
body: <p>Trying to setup a test page that access a video hosted on S3 and streamed using CloudFront. The player I'm using is JWPlayer, which is supposed to work with iOS devices as well.</p>
  
  <p>Unfortunately, nothing happens when I open it on the iPhone... I'm sure the answer is obvious, but it has eluded me for the last hour. Here's the code (mostly a copy/paste from <a href="http://aws.amazon.com/articles/4101?_encoding=UTF8&amp;jiveRedirect=1" rel="nofollow">http://aws.amazon.com/articles/4101?_encoding=UTF8&amp;jiveRedirect=1</a>):</p>
  
  <pre><code>&lt;!--     THIS IS A BASIC HTML FILE TO PLAY MP4's USING JW PLAYER 
  The following code is from longtailvideo.com's 'Setup Wizard', found at http://www.longtailvideo.com/support/jw-player-setup-wizard --&gt;
  &lt;HTML&gt;
  &lt;HEAD&gt;
  &lt;TITLE&gt;  
  Streaming Video with JW Player
  &lt;/TITLE&gt;    
  &lt;/HEAD&gt;
  &lt;BODY&gt;
  &lt;!-- Put a header above your video, if you like
  --&gt;
  &lt;H1&gt;This is my header&lt;/H1&gt;
  &lt;script type='text/javascript' src='http://s3.amazonaws.com/intrinseque-video/swfobject.js'&gt;&lt;/script&gt;   
  &lt;div id='mediaspace'&gt;This text will be replaced&lt;/div&gt;
  &lt;script type='text/javascript'&gt;
  var so = new SWFObject('http://s3.amazonaws.com/intrinseque-video/player.swf','mpl','470','290','9');
       so.addParam('allowfullscreen','true');
       so.addParam('allowscriptaccess','always');
       so.addParam('wmode','opaque');
       so.addVariable('file','mp4:oceans-clip.ipad.mp4'); 
           so.addVariable('streamer','rtmp://s1m21pqfl8vlrl.cloudfront.net/cfx/st/'); 
       so.write('mediaspace');
  &lt;/script&gt;
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  
  &lt;!--Common problems:
  -   You cannot have any spaces in any of your URL's (including your 'rtmp://...'  URL)              (i.e.,  http:// thereisaspaceatthebeginninghere.xxx) 
  -   Be sure you are calling the correctly numbered version of the flowplayer objects/players (i.e. flowplayer-3.2.2.swf
  -   You cannot have duplicates of 's3.amazonaws.com' or 'cloudfront.net' in the same address (i.e. (http://s3.amazonaws.com/s3.amazonaws.com/YOUR_BUCKET/player.swf)
  -   There is a different naming protocol for mp4 vs flv files. For .mp4 files, YOU MUST write it as 'mp4:YOUR_VIDEO_FILE_WITHOUT_THE _MP4_SUFFIX'. For .flv files, you simply write the name of the file, 'YOUR_VIDEO_FILE_WITHOUT_THE_FLV_SUFFIX'.
  --&gt;
  </code></pre>