title: Local video files won't play in Cordova Android App
body: <p>I'm building an app in Cordova where the first page of the app contains a video tag set to autoplay. I don't get any 404 errors loading the file... The file just won't play. The video is just black with a 0:00 time length that doesn't change. </p>
  
  <p>The strange thing is I get two network requests in Chrome remote dev tools for the video file: the first shows a (success) status, and the second has a status of (cancelled). I've tried using two different URLs for the file:</p>
  
  <p>file:///android_asset/www/video/nameofmyvideo.mp4 with the video file actually in /www/video/nameofmyvideo.mp4.</p>
  
  <p>and</p>
  
  <p>android.resource://mypackagename/raw/nameofmyvideo with the video file actually in /www/res/raw/nameofmyvideo and /platforms/android/res/raw/nameofmyvideo</p>
  
  <p>I'm running the latest cordova (3.4.1-0.1.0) and testing on a kindle fire running CM-11 (4.4.2).</p>
  
  <p>Here's the the markup I'm using:</p>
  
  <pre><code>&lt;video width="400px" height="300px" autoplay controls&gt;
      &lt;source src="file:///android_asset/www/video/video-test.mp4" type="video/mp4"&gt;
  &lt;/video&gt;
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>&lt;video width="400px" height="300px" autoplay controls&gt;
      &lt;source src="android.resource://my.package.name/raw/videotest" type="video/mp4"&gt;
  &lt;/video&gt;
  </code></pre>
  
  <p>Is this an android pathing issue? The app runs fine as-is in iOS. I've also tried using webm, with no success.</p>
  
  <p>edit:</p>
  
  <p>Also it seems that the double network load issue (one success, one cancelled) happens regardless of whether the file can actually load. I loaded the same mp4 file over http hosted on my website and the video played fine (but still showed both requests).</p>