title: Run a script while HTML5 video plays
body: <p>When using HTML5 video, is it possible to have a constantly running script while the video is playing (but only when its playing)?</p>
  
  <p>For example:</p>
  
  <pre><code>video.onplaying = function(e){
      alert("playing");
  }
  video.bind("ended", function(){ 
      alert('Video Ended'); 
  });
  </code></pre>
  
  <p>These are examples I found and tried to incorporate into my player with little success.</p>