title: missing html5 video "ended" event on iPad
body: <p>Sometimes my HTML5 video does not generate an "ended" event on the iPad.  Seems only to happen when I omit the "controls" attribute and start playback from javascript.  It usually works fine the first time, but the second time the video plays out but does not generate an "ended" event.  I do call "load()" after each playback in order to reset to the beginning of the clip (because seeking doesn't seem to work at all - see <a href="https://stackoverflow.com/questions/3768529/html5-video-seeking-on-ipad">this thread</a>).  I have a workaround, which is to track "timeupdate" events and perform my end-of-play actions when <code>vid.currentTime&gt;=vid.duration</code>, but I was wondering if anyone else had experienced this problem.  Some relevant code follows.</p>
  
  <p>Cheers
  -Chris</p>
  
  <p>The document onload function:</p>
  
  <pre><code>function load() {
      var vid = document.getElementById('vid');
      vid.addEventListener('ended', function() {
          alert('video ended');
          vid.load();
      },false);
  }
  </code></pre>
  
  <p>The html:</p>
  
  <pre><code>&lt;body onload="load();"&gt;
  &lt;h1&gt;HTML5 Video Test&lt;/h1&gt;
  &lt;input type="submit" value="Play" onclick="document.getElementById('vid').play();"&gt;
  &lt;video id="vid" src="test.mov" width="640" height="480"&gt;&lt;/video&gt;
  &lt;/body&gt;
  </code></pre>