Skip to content

Commit

Permalink
Simplified procedure to associate a timing text track with a timing o…
Browse files Browse the repository at this point in the history
…bject

If we drop the notion of "list of timing text tracks", it does not make sense
to talk about "old timing" and "new timing" in the algorithm.

By the way, I note that the "time marches on" algorithm refers to the list of
text tracks of a media element, so more changes would be required to apply it
directly to timing text track objects if we don't introduce a similar notion
for timing objects. Given that the "track marches on" procedure is left
underspecified at this stage, that's not a big deal.
  • Loading branch information
tidoust committed Aug 19, 2015
1 parent 1e05a70 commit 5e284fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.html
Expand Up @@ -1142,7 +1142,7 @@ <h3>Procedure: Check error in time-alignment for <a>media element</a></h3>
<li>Let <var>ideal</var> be the result of <code>timing.query().position</code>.</li>
<li>Let <var>actual</var> be the currentTime of the internal media player.</li>
<li>Let <var>error</var> be (<var>ideal</var> - <var>actual</var>).</li>
<li>If (<var>error</var> &#gt <var>max</var>) start adjust time-alignment with given <var>error</var></li>.
<li>If (<var>error</var> &gt; <var>max</var>) start adjust time-alignment with given <var>error</var></li>.
</ol>
</section>

Expand Down Expand Up @@ -1289,9 +1289,7 @@ <h3>Procedure: Associate <a>timing text track</a> with a <a>timing object</a></h
</p>
<ol>
<li>Let <var>track</var> be the <a>timing text track</a> in question.</li>
<li>Let <var>old timing</var> be <var>track</var>'s <a>current timing source</a>, if any, or null otherwise.</li>
<li>Let <var>track</var>'s <a>current timing source</a> be the new value.</li>
<li>Let <var>new timing</var> be <var>track</var>'s <a>current timing source</a>.</li>
<li>Run the <a>track marches on</a> algorithm of <var>track</var>.</li>
</ol>

Expand Down

0 comments on commit 5e284fe

Please sign in to comment.