Skip to content
This repository was archived by the owner on Jun 7, 2018. It is now read-only.

Commit 700f286

Browse files
committed
Merge pull request #29 from shans/noPauseChange
Modified procedure to finish a player so that pause state is not changed.
2 parents 3dc06c0 + f090e40 commit 700f286

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Overview.src.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,18 +1061,11 @@ <h4 id="finishing-a-player-section">Finishing a player</h4>
10611061
handle that here.
10621062
</div>
10631063

1064-
4. Set <var>player</var>'s <a>pause flag</a> to false.
1065-
1066-
<div class="annotation">
1067-
This is needed so that <var>player</var> ends up in the
1068-
<a>finished play state</a>, not the <a>paused play state</a>.
1069-
</div>
1070-
1071-
5. If there is a <a>pending play task</a>, cancel that task and
1064+
4. If there is a <a>pending play task</a>, cancel that task and
10721065
fulfill the <a>current ready promise</a> of <var>player</var> with
10731066
<var>player</var>.
10741067

1075-
6. If <var>player</var> has an associated <a>timeline</a> that is
1068+
5. If <var>player</var> has an associated <a>timeline</a> that is
10761069
<em>not</em> <a title="inactive timeline">inactive</a>, update
10771070
<var>player</var>'s <a title="player start time">start time</a> to
10781071
the result of evaluating
@@ -1081,9 +1074,14 @@ <h4 id="finishing-a-player-section">Finishing a player</h4>
10811074
where <var>timeline time</var> is the current <a>time value</a>
10821075
of the associated <a>timeline</a>.
10831076

1084-
7. Run the procedure to <a>update a player's finished state</a>
1077+
6. Run the procedure to <a>update a player's finished state</a>
10851078
for <var>player</var>.
10861079

1080+
Note: Finishing a player does not necessarily cause that player
1081+
to enter the <a>finished play state</a>. In particular, if a player was in the
1082+
<a>paused play state</a> before finishing, it will remain in the
1083+
<a>paused play state</a> afterwards.
1084+
10871085
<h4 id='cancelling-a-player-section'>Cancelling a player</h4>
10881086

10891087
A player can be cancelled which causes the <a>current time</a> to
@@ -7494,6 +7492,8 @@ <h2 id="changes-since-last-publication">Changes since last publication</h2>
74947492
* Removed the non-normative description of seeking behavior.
74957493
* Added the <a>current finished promise</a> and <a>current ready
74967494
promise</a> objects to <a>players</a>.
7495+
* Modified the procedure to <a>finish a player</a> so that pause
7496+
state is not changed by finishing.
74977497
* Added player <a>play states</a>.
74987498
* Removed player events.
74997499
* Rewrote most of the algorithms for <a>players</a> to accommodate

0 commit comments

Comments
 (0)