title: Netstream video not playing on iPad
body: <p>I am building an iPad app using Flash CS6 to compile to AIR 3.3 on a PC.  </p>
  
  <p>One of the app requirements is a video player which can be overlaid with other display element - primarily for subtitles.  </p>
  
  <p>I am using Netstream to play MP4 video (have also tried FLVPlayer with same results).<br>
  Everything works fine when compiled to run in the emulator, but the video doesn't play once installed on my test device - iPad 3.<br>
  (I did a simple test a few months ago and got video playing correctly with audio, but that was CS5.5, AIR 3.1, iPad 2. I will return to this setup, but I obviously do also need to support iPad3...)  </p>
  
  <p>So, a couple of quick questions first...<br>
  Anyone with the same problems?<br>
  Do you know if anything has changed recently on iOS that blocks AIR playing video?  </p>
  
  <p>I do the usual netstream / netconnection stuff then pass a <code>File.url</code> to <code>netstream.play()</code>.<br>
  Here are the guts of the code:  </p>
  
  <pre><code>var nc:NetConnection = new NetConnection();
  var ns:NetStream;
  var vid:Video = new Video();
  var videoFile:File;
  videoFile = File.applicationDirectory;
  videoFile = videoFile.resolvePath(Config.VIDEO_DIRECTORY + 'myVideo.mp4');
  nc.connect(null);
  ns = new NetStream(nc);
  ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false, 0, true);
  ns.client = this; // To handle onMetaData &amp; onXMPData
  vid.attachNetStream(ns);
  vid.smoothing = true;
  addChild(vid);
  ns.play(videoFile.url);
  </code></pre>
  
  <p>Publish settings are:</p>
  
  <blockquote>
    <p>Hardware acceleration :: Level 2 - GPU (have also tried Direct)<br>
    Render Mode :: GPU  (have also tried Direct)<br>
    Device :: iPad<br>
    Resolution :: High (have also tried Standard)<br>
    Included files :: app.swf, app.xml, assets directory with video / images (images load fine) (tried including .mp4 directly rather than in directory, no difference)  </p>
  </blockquote>
  
  <p>Can any of you help?  </p>