hixie: Provide an .onended event handler for MediaController to expose the event more easily. (whatwg r6247)

hixie: Provide an .onended event handler for MediaController to expose
the event more easily. (whatwg r6247)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5009&r2=1.5010&f=h
http://html5.org/tools/web-apps-tracker?from=6246&to=6247

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5009
retrieving revision 1.5010
diff -u -d -r1.5009 -r1.5010
--- Overview.html 16 Jun 2011 21:44:04 -0000 1.5009
+++ Overview.html 16 Jun 2011 22:00:27 -0000 1.5010
@@ -24979,6 +24979,7 @@
            attribute <a href="#function">Function</a>? <a href="#handler-mediacontroller-oncanplay" title="handler-MediaController-oncanplay">oncanplay</a>;
            attribute <a href="#function">Function</a>? <a href="#handler-mediacontroller-oncanplaythrough" title="handler-MediaController-oncanplaythrough">oncanplaythrough</a>;
            attribute <a href="#function">Function</a>? <a href="#handler-mediacontroller-onplaying" title="handler-MediaController-onplaying">onplaying</a>;
+           attribute <a href="#function">Function</a>? <a href="#handler-mediacontroller-onended" title="handler-MediaController-onended">onended</a>;
            attribute <a href="#function">Function</a>? <a href="#handler-mediacontroller-onwaiting" title="handler-MediaController-onwaiting">onwaiting</a>;
 
            attribute <a href="#function">Function</a>? <a href="#handler-mediacontroller-ondurationchange" title="handler-MediaController-ondurationchange">ondurationchange</a>;
@@ -25518,7 +25519,7 @@
    reported playback state</a> is not equal to <var title="">new
    playback state</var> then <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a
    simple event</a> at the <code><a href="#mediacontroller">MediaController</a></code> object,
-   whose name is <code title="event-MediaController-playing"><a href="#event-mediacontroller-playing">playing</a></code> if <var title="">new playback state</var> is <i>playing</i>, <code title="event-MediaController-ended">ended</code> if <var title="">new playback state</var> is <i>ended</i>, and <code title="event-MediaController-waiting"><a href="#event-mediacontroller-waiting">waiting</a></code>
+   whose name is <code title="event-MediaController-playing"><a href="#event-mediacontroller-playing">playing</a></code> if <var title="">new playback state</var> is <i>playing</i>, <code title="event-MediaController-ended"><a href="#event-mediacontroller-ended">ended</a></code> if <var title="">new playback state</var> is <i>ended</i>, and <code title="event-MediaController-waiting"><a href="#event-mediacontroller-waiting">waiting</a></code>
    otherwise.</li>
 
    <li><p>Let the <code><a href="#mediacontroller">MediaController</a></code>'s <a href="#most-recently-reported-playback-state">most recently
@@ -25536,6 +25537,7 @@
     <tr><td><dfn id="handler-mediacontroller-oncanplay" title="handler-MediaController-oncanplay"><code>oncanplay</code></dfn> <td> <code title="event-MediaController-canplay"><a href="#event-mediacontroller-canplay">canplay</a></code>
     <tr><td><dfn id="handler-mediacontroller-oncanplaythrough" title="handler-MediaController-oncanplaythrough"><code>oncanplaythrough</code></dfn> <td> <code title="event-MediaController-canplaythrough"><a href="#event-mediacontroller-canplaythrough">canplaythrough</a></code>
     <tr><td><dfn id="handler-mediacontroller-onplaying" title="handler-MediaController-onplaying"><code>onplaying</code></dfn> <td> <code title="event-MediaController-playing"><a href="#event-mediacontroller-playing">playing</a></code>
+    <tr><td><dfn id="handler-mediacontroller-onended" title="handler-MediaController-onended"><code>onended</code></dfn> <td> <code title="event-MediaController-ended"><a href="#event-mediacontroller-ended">ended</a></code>
     <tr><td><dfn id="handler-mediacontroller-onwaiting" title="handler-MediaController-onwaiting"><code>onwaiting</code></dfn> <td> <code title="event-MediaController-waiting"><a href="#event-mediacontroller-waiting">waiting</a></code>
    <tbody><tr><td><dfn id="handler-mediacontroller-ondurationchange" title="handler-MediaController-ondurationchange"><code>ondurationchange</code></dfn> <td> <code title="event-MediaController-durationchange"><a href="#event-mediacontroller-durationchange">durationchange</a></code>
     <tr><td><dfn id="handler-mediacontroller-ontimeupdate" title="handler-MediaController-ontimeupdate"><code>ontimeupdate</code></dfn> <td> <code title="event-MediaController-durationchange"><a href="#event-mediacontroller-durationchange">durationchange</a></code>
@@ -27238,6 +27240,9 @@
     <tr><td><dfn id="event-mediacontroller-playing" title="event-MediaController-playing"><code>playing</code></dfn>
      <td><code><a href="#event">Event</a></code>
      <td>The <code><a href="#mediacontroller">MediaController</a></code> is no longer a <a href="#blocked-media-controller">blocked media controller</a>.
+    <tr><td><dfn id="event-mediacontroller-ended" title="event-MediaController-ended"><code>ended</code></dfn>
+     <td><code><a href="#event">Event</a></code>
+     <td>The <code><a href="#mediacontroller">MediaController</a></code> has reached the end of all the <a href="#slaved-media-elements">slaved media elements</a>.
     <tr><td><dfn id="event-mediacontroller-waiting" title="event-MediaController-waiting"><code>waiting</code></dfn>
      <td><code><a href="#event">Event</a></code>
      <td>The <code><a href="#mediacontroller">MediaController</a></code> is now a <a href="#blocked-media-controller">blocked media controller</a>.

Received on Friday, 17 June 2011 09:51:40 UTC