title: Comprehensive html5 Audio API
body: <p>For the life of me, I cannot find a complete listing of all html5 <code>&lt;audio&gt;</code> events and attributes (though I believe they may vary between browsers).  A lot of my googling has websites talking about "using the javascript audio api" or "with the javascript audio api," etc. and shows a couple of examples, but I haven't found a list of methods or what they do.</p>
  
  <p>For example, </p>
  
  <pre><code>var a = document.getElementById('audio');
  a.ended = function () { alert('foo!'); }; //FAIL
  a.onended = function () { alert('foo!'); }; //FAIL
  a.addEventListener('ended', function () { alert('foo!'}); }; //PASS
  a.addEventListener('play', function () { alert('foo!'}); };
  </code></pre>
  
  <p>Why is there no <code>onended</code>?  Why is it called <code>play</code> instead of <code>played</code>?  These things aren't intuitive, so an actual list of the API would help a lot.</p>
  
  <p>Additionally, do some browsers not respect the above attributes?  My blackberry phone and mobile-ie9 won't alert on the ended event, but chrome, ffx, and ipad-safari all do.</p>