title: Cordova Media won't play mp3 from www
body: <p>I have found lots of potential resolutions to this issue on StackOverflow but nothing seems to be resolving it for me. I am trying to play an mp3 file within my Cordova (3.5) app using <code>org.apache.cordova.media@0.2.10</code></p>
  
  <pre><code>var sound = new Media('audio/el/hello.mp3');
  sound.play()
  </code></pre>
  
  <p>But it just won't play and I get the following error in LogCat</p>
  
  <pre><code>MediaPlayer error (1, -2147483648)
  </code></pre>
  
  <p>I have tried serving the folder locally and the following works pointing at the same file</p>
  
  <pre><code>var sound = new Media('http://10.0.2.2:9999/www/audio/el/hello.mp3');
  sound.play()
  </code></pre>
  
  <p>Which suggests that it isn't because the file has an encoding problem.</p>
  
  <p>I wasn't able to use the latest version of the <code>media</code> plugin because the <code>deviceready</code> event never fires.</p>
  
  <p><strong>Update</strong>: I've just tried unzipping the files to persistent storage and playing them from there and I get the same error.</p>
  
  <p><strong>Update</strong>: Stepping through the <code>AudioPlayer.java</code> source it seems that the <code>www</code> directory is not part of the assets because the following call throws a <code>FileNotFoundException</code> where <code>f == "www/el/hello.mp3"</code></p>
  
  <pre><code>fd = this.handler.cordova.getActivity().getAssets().openFd(f);
  </code></pre>
  
  <p>However If I place the files directly in the <code>assets</code> folder then it works.</p>