title: videoPlayer plugin not working on cordova 2.7.0 - Android
body: <p>I can't seem to get the video player working for Android on Cordova 2.7.0. I've attempted to use the videoPlayer plugin at <a href="https://github.com/macdonst/VideoPlayer" rel="nofollow noreferrer">https://github.com/macdonst/VideoPlayer</a>.</p>
  
  <p>I've spent several hours trying to get a "hello World" type video playback to work and I'm having issues with paths. I've followed the directions from the readme, but still getting an "Uncaught TypeError: Cannot read property 'videoPlayer' of undefined". I am also getting errors in the src->com->phonegap->plugins->video location of the Java file. I've tried multiple locations of the VideoPlayer.java file, but all give me errors. I have included the line in the XML file and the video.js file is in my www root.</p>
  
  <p><a href="https://lh4.googleusercontent.com/-kvILYakcBc0/Uay7dd7tx9I/AAAAAAAAAFU/NKnTf9psHvs/w1341-h566-no/Screenshot.png" rel="nofollow noreferrer">Screenshot</a> of structure:</p>
  
  <p>Video "hello world" example I'm using:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta name="viewport" content="width=320; user-scalable=yes" /&gt;
  &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8"&gt;
  &lt;title&gt;PhoneGap&lt;/title&gt;
  &lt;script type="text/javascript" charset="utf-8" src="cordova-2.7.0.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" charset="utf-8" src="video.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  function init(){
  document.addEventListener("deviceready", devRdy, true);
  }
  
  function devRdy() {
  console.log("**************");
  console.log("**************");
  console.log("**************");
  console.log("the device is ready");
  console.log("**************");
  console.log("**************");
  console.log("**************");
  }
  
  function playVideo(vidUrl) {
  window.plugins.videoPlayer.play(vidUrl);
  }
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body onload="init();"&gt;
  &lt;a href="#" onclick="playVideo('http://www.flabber.nl/sites/flabber.nl/files/PingPongakaTableTennisSD.mp4')"&gt;Play HTTP&lt;/a&gt;&lt;p/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>