Skip to content

Commit d3dd245

Browse files
birtlessvgeesus
authored andcommitted
Remove player events
1 parent bd2b704 commit d3dd245

1 file changed

Lines changed: 8 additions & 171 deletions

File tree

web-animations/index.html

Lines changed: 8 additions & 171 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,8 @@ <h3>Stateless</h3>
368368
of the core timing model but are layered on top.
369369
</p>
370370
<p>
371-
Likewise, <a>player events</a> are fired when the first sample occurs
372-
at the limit of the <a>source content</a>.
373-
This too is stative behavior but is part of the play control layered
374-
on top of the timing model.
375-
</p>
376-
<p>
377-
Similarly, the <a href="#limiting-the-current-time">limiting
378-
behavior</a> of players means that dynamic changes to the end time of
371+
Similarly, the <a href="#reaching-the-end">limiting behavior</a> of
372+
players means that dynamic changes to the end time of
379373
the media (source content) of a player may produce a different result
380374
depending on when the change occurs.
381375
This behavior is somewhat unfortunate but has been deemed intuitive
@@ -598,8 +592,8 @@ <h2>Players</h2>
598592
When a <a>player</a> is created, it is assigned a globally unique
599593
sequence number called the <dfn>player sequence number</dfn>.
600594
This number is used to resolve the sort order of players for a variety
601-
of situations such as combining animations, queuing events, and
602-
returning the list of current players.
595+
of situations such as combining animations and returning the list of
596+
current players.
603597
</p>
604598
<p class="issue">
605599
Should this actually be based on when the player is attached to
@@ -1403,102 +1397,6 @@ <h3>Player state</h3>
14031397
</pre>
14041398
</div>
14051399
</section>
1406-
<section>
1407-
<h2>Player events</h2>
1408-
<p>
1409-
As <a>players</a> play they report changes to
1410-
their status through <dfn title="player event">player events</dfn>.
1411-
</p>
1412-
<p>
1413-
<a>Player events</a> are a property of the Web Animations timing
1414-
model.
1415-
As a result they are dispatched even when the <a>source content</a> of
1416-
the player is absent or has no observable result.
1417-
</p>
1418-
<section>
1419-
<h3>Types of player events</h3>
1420-
<dl>
1421-
<dt><dfn title="finish player event">finish</dfn></dt>
1422-
<dd>
1423-
<p>
1424-
Queued whenever a sample occurs that causes a <a>player</a>'s
1425-
<a>finished flag</a> to be newly true.
1426-
</p>
1427-
<ul>
1428-
<li>Bubbles: no</li>
1429-
<li>Cancelable: no</li>
1430-
<li>Context Info: currentTime, documentTime</li>
1431-
</ul>
1432-
</dd>
1433-
</dl>
1434-
<p>
1435-
To assist dispatching <a title="finish player event">finish
1436-
events</a>, <a>players</a> maintain a <dfn>finished flag</dfn> that
1437-
is initially false when the player is created.
1438-
</p>
1439-
<p>
1440-
During each <a>sample</a>, the <a>finished flag</a> is updated such
1441-
that it is set to true if the player is <a>limited</a> and false
1442-
otherwise.
1443-
</p>
1444-
</section>
1445-
<section>
1446-
<h3>Event parameters</h3>
1447-
<p>
1448-
<a>Player events</a> have an associated <a>event
1449-
current time</a> and <a>event timeline time</a>.
1450-
</p>
1451-
<p>
1452-
The <dfn>event current time</dfn> is the <a>current time</a> of the
1453-
<a>player</a> that generated the event at the moment the event is
1454-
queued.
1455-
This will be null if the <a>player</a> was not associated with
1456-
a <a>timeline</a> at the time the event was generated.
1457-
</p>
1458-
<p>
1459-
The <dfn>event timeline time</dfn> is the <a>time value</a> of the
1460-
<a>timeline</a> with which the <a>player</a> that generated the
1461-
event is associated at the moment the event is queued.
1462-
This will be null if the <a>player</a> was not associated with
1463-
a <a>timeline</a> at the time the event was generated.
1464-
</p>
1465-
</section>
1466-
<section>
1467-
<h3>Propagation path</h3>
1468-
<p>
1469-
The <a
1470-
href="http://www.w3.org/TR/DOM-Level-3-Events/#glossary-propagation-path">propagation
1471-
path</a> for a <a>player event</a> generated by <var>player</var>,
1472-
is simply <var>player</var> itself.
1473-
</p>
1474-
</section>
1475-
<section>
1476-
<h3>Sequence of events</h3>
1477-
<p>
1478-
The sequence in which <a>player events</a> are queued is in
1479-
ascending order by <a>event timeline time</a>.
1480-
If two <a>player events</a> have the same <a>event document
1481-
time</a>, the <a>player events</a> are queued in ascending order by
1482-
<a>player sequence number</a> of the <a>players</a> that generated
1483-
the events.
1484-
</p>
1485-
</section>
1486-
<section>
1487-
<h3>Event dispatch</h3>
1488-
<p>
1489-
<dfn>Events are queued</dfn> whenever <a>sampling</a> regularly
1490-
occurs (that is, <em>not</em> when the timing model is evaluated due
1491-
to <a>seeking</a> or structural changes to the hierarchy of
1492-
<a>animation nodes</a>).
1493-
</p>
1494-
<p>
1495-
As a result, <a>seeking</a> a <a>player</a> to the limit of its
1496-
<a>source content</a> and back to a point within its <a>source
1497-
content</a> within the same script execution block will <em>not</em>
1498-
trigger a <a title="finish player event">finish</a> event.
1499-
</p>
1500-
</section>
1501-
</section>
15021400
</section>
15031401

15041402
<section>
@@ -3719,8 +3617,8 @@ <h4>Not animatable</h4>
37193617
An <a>animation effect</a> that targets a property that is
37203618
<a>not animatable</a> will still exhibit the usual behavior for
37213619
an <a>animation node</a> such as occupying time in an <a>animation
3722-
sequence</a> and delaying the firing of a <a>player</a>'s <a
3723-
title="finish player event">finish event</a>.
3620+
sequence</a> and delaying the fulfilment of a <a>player</a>'s
3621+
<a>current finished promise</a>
37243622
</p>
37253623
</section>
37263624
<section>
@@ -5715,7 +5613,7 @@ <h3>The <code>AnimationPlayer</code> interface</h3>
57155613
<a>Players</a> are represented in the Web Animations
57165614
API by the <a>AnimationPlayer</a> interface.
57175615
</p>
5718-
<dl title="interface AnimationPlayer : EventTarget" class="idl">
5616+
<dl title="interface AnimationPlayer" class="idl">
57195617
<dt>attribute AnimationNode? source</dt>
57205618
<dd>
57215619
<p>
@@ -5829,19 +5727,6 @@ <h3>The <code>AnimationPlayer</code> interface</h3>
58295727
it has finished playing in the reversed direction by running the
58305728
<a>reverse a player</a> procedure for this object.
58315729
</dd>
5832-
<dt>// Event callbacks</dt><dd></dd>
5833-
<dt>attribute EventHandler onfinish</dt>
5834-
<dd>
5835-
<p>
5836-
The event handler for the <a
5837-
title="finish player event">finish</a> event.
5838-
</p>
5839-
<p class="note">
5840-
Note that the <a
5841-
href="http://www.w3.org/TR/html5/webappapis.html#eventhandler">EventHandler</a>
5842-
callback interface type is defined in [[!HTML5]].
5843-
</p>
5844-
</dd>
58455730
</dl>
58465731
<section>
58475732
<h3>The <code>AnimationPlayState</code> enumeration</h3>
@@ -7991,52 +7876,6 @@ <h3>The <code>EffectCallback</code> callback function</h3>
79917876
</dl>
79927877
</div>
79937878
</section>
7994-
<section>
7995-
<h3>The <code>AnimationPlayerEvent</code> interface</h3>
7996-
<p>
7997-
<a>Player events</a> are represented in the API by the
7998-
<a>AnimationPlayerEvent</a> interface.
7999-
</p>
8000-
<dl title="interface AnimationPlayerEvent : Event" class="idl">
8001-
<dt>Constructor ()</dt>
8002-
<dd>
8003-
Constructs a new <a>AnimationPlayerEvent</a> object as described in
8004-
<a href="http://www.w3.org/TR/dom/#constructing-events">Constructing
8005-
events</a> in [[!DOM4]].
8006-
<dl class="parameters">
8007-
<dt>DOMString type</dt>
8008-
<dd>
8009-
The type of <a>player event</a> corresponding to one of the
8010-
types defined in <a href="#types-of-player-events"
8011-
class="sectionRef"></a>.
8012-
</dd>
8013-
<dt>optional AnimationPlayerEventInit eventInit</dt>
8014-
<dd>
8015-
The parameters of the new <a>AnimationPlayerEvent</a>.
8016-
</dd>
8017-
</dl>
8018-
</dd>
8019-
<dt>attribute double? currentTime</dt>
8020-
<dd>
8021-
The <a>event current time</a>.
8022-
</dd>
8023-
<dt>attribute double? timelineTime</dt>
8024-
<dd>
8025-
The <a>event timeline time</a>.
8026-
</dd>
8027-
</dl>
8028-
<p>
8029-
The <a>AnimationPlayerEventInit</a> dictionary type is used to specify
8030-
the parameters when constructing an <a>AnimationPlayerEvent</a>
8031-
object.
8032-
</p>
8033-
<dl title="dictionary AnimationPlayerEventInit" class="idl">
8034-
<dt>double? currentTime = null</dt>
8035-
<dd></dd>
8036-
<dt>double? timelineTime = null</dt>
8037-
<dd></dd>
8038-
</dl>
8039-
</section>
80407879
<section>
80417880
<h3>Extensions to the <code>Document</code> interface</h3>
80427881
<p>
@@ -8355,9 +8194,7 @@ <h3>Conformance criteria</h3>
83558194
A <dfn>conforming scripted Web Animations user agent</dfn> is a user
83568195
agent that implements the <abbr
83578196
title="Application Programming Interface">API</abbr> defined in <a
8358-
href="#programming-interface" class="sectionRef"></a> including
8359-
dispatching events as defined in <a href="#player-events"
8360-
class="sectionRef"></a>.
8197+
href="#programming-interface" class="sectionRef"></a>.
83618198
</p>
83628199
</section>
83638200
</section>

0 commit comments

Comments
 (0)