Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) add notes and fix typos
git-svn-id: http://svn.whatwg.org/webapps@3443 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 18, 2009
1 parent a405839 commit 0f29ef8
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 35 deletions.
94 changes: 60 additions & 34 deletions index
Expand Up @@ -67,7 +67,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-standard-&mdash;-date:-01-jan-1901>Draft Standard &mdash; 17 July 2009</h2>
<h2 class="no-num no-toc" id=draft-standard-&mdash;-date:-01-jan-1901>Draft Standard &mdash; 18 July 2009</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -20951,77 +20951,102 @@ interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {
</ol></dd>


<dt id=getting-media-metadata>Once enough of the <a href=#media-data>media
data</a> has been fetched to determine the duration of the
<a href=#media-resource>media resource</a>, its dimensions, and other
<!-- insert content sniffing here if we want to define that -->
<!-- (in practice I don't think that's necessary since it's not
like you can do anything with the resource if you sniff it as the
wrong type) ->


<dt id="getting-media-metadata">Once enough of the <span>media
data</span> has been fetched to determine the duration of the
<span>media resource</span>, its dimensions, and other
metadata</dt>

<dd>

<p>This indicates that the resource is usable. The user agent
must follow these substeps:</p>

<ol><li><p>Set the <a href=#current-playback-position>current playback position</a> to the
<a href=#earliest-possible-position>earliest possible position</a>.</li>
<ol>

<li><p>Set the <span>current playback position</span> to the
<span>earliest possible position</span>.</p></li>

<li><p>Set the <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute to
<code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code>.</li>
<li><p>Set the <code
title="dom-media-readyState">readyState</code> attribute to
<code
title="dom-media-HAVE_METADATA">HAVE_METADATA</code>.</p></li>

<li><p>For <code><a href=#video>video</a></code> elements, set the <code title=dom-video-videoWidth><a href=#dom-video-videowidth>videoWidth</a></code> and <code title=dom-video-videoHeight><a href=#dom-video-videoheight>videoHeight</a></code>
attributes.</li>
<li><p>For <code>video</code> elements, set the <code
title="dom-video-videoWidth">videoWidth</code> and <code
title="dom-video-videoHeight">videoHeight</code>
attributes.</p></li>

<li>

<p>Set the <code title=dom-media-duration><a href=#dom-media-duration>duration</a></code>
<p>Set the <code title="dom-media-duration">duration</code>
attribute to the duration of the resource.</p>

<p class=note>The user agent <a href=#durationChange>will</a> <a href=#queue-a-task>queue a task</a> to
<a href=#fire-a-simple-event>fire a simple event</a> called <code title=event-durationchange><a href=#event-durationchange>durationchange</a></code> at the
<p class="note">The user agent <a
href="#durationChange">will</a> <span>queue a task</span> to
<span>fire a simple event</span> called <code
title="event-durationchange">durationchange</code> at the
element at this point.</p>

</li>

<li id=fire-loadedmetadata><p><a href=#queue-a-task>Queue a task</a> to
<a href=#fire-a-simple-event>fire a simple event</a> called <code title=event-loadedmetadata><a href=#event-loadedmetadata>loadedmetadata</a></code> at the
<li id="fire-loadedmetadata"><p><span>Queue a task</span> to
<span>fire a simple event</span> called <code
title="event-loadedmetadata">loadedmetadata</code> at the
element.</li>

<li>

<p>If either the <a href=#media-resource>media resource</a> or the address
<p>If either the <span>media resource</span> or the address
of the <var title="">current media resource</var> indicate a
particular start time, then <a href=#dom-media-seek title=dom-media-seek>seek</a> to that time. Ignore any
particular start time, then <span
title="dom-media-seek">seek</span> to that time. Ignore any
resulting exceptions (if the position is out of range, it is
effectively ignored).</p>

<p class=example>For example, a fragment identifier could be
<p class="example">For example, a fragment identifier could be
used to indicate a start position.</p>

</li>

<li>

<p>Once the <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute
reaches <code title=dom-media-HAVE_CURRENT_DATA><a href=#dom-media-have_current_data>HAVE_CURRENT_DATA</a></code>,
<a href=#fire-loadeddata>after the <code title=event-loadeddata>loadeddata</code> event has been
fired</a>, set the element's <a href=#delaying-the-load-event-flag>delaying-the-load-event
flag</a> to false. This stops <a href=#delay-the-load-event title="delay the load
event">delaying the load event</a>.</p>

<p class=note>A user agent that is attempting to reduce
<p>Once the <code
title="dom-media-readyState">readyState</code> attribute
reaches <code
title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code>,
<a href="#fire-loadeddata">after the <code
title="event-loadeddata">loadeddata</code> event has been
fired</a>, set the element's <span>delaying-the-load-event
flag</span> to false. This stops <span title="delay the load
event">delaying the load event</span>.</p>

<p class="note">A user agent that is attempting to reduce
network usage while still fetching the metadata for each
<a href=#media-resource>media resource</a> would also stop buffering at this
point, causing the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute
to switch to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value, if
the <a href=#media-element>media element</a> did not have an <code title=attr-media-autobuffer><a href=#attr-media-autobuffer>autobuffer</a></code> or <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute.</p>
<span>media resource</span> would also stop buffering at this
point, causing the <code
title="dom-media-networkState">networkState</code> attribute
to switch to the <code
title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> value, if
the <span>media element</span> did not have an <code
title="attr-media-autobuffer">autobuffer</code> or <code
title="attr-media-autoplay">autoplay</code> attribute.</p>

</li>

</ol><p class=note>The user agent is <em>required</em> to
determine the duration of the <a href=#media-resource>media resource</a> and
</ol>

<p class="note">The user agent is <em>required</em> to
determine the duration of the <span>media resource</span> and
go through this step before playing.</p> <!-- actually defined
in the 'duration' section -->

</dd>



<dt>If the connection is interrupted, causing the user agent to
Expand Down Expand Up @@ -48946,7 +48971,7 @@ interface <dfn id=function>Function</dfn> {
an HTML page "<code title="">clock.html</code>", a CSS style sheet
"<code title="">clock.css</code>", and a JavaScript script "<code title="">clock.js</code>".</p>

<p>Before adding the manifest, three three files might look like
<p>Before adding the manifest, these three files might look like
this:</p>

<pre>&lt;!-- clock.html --&gt;
Expand Down Expand Up @@ -72075,6 +72100,7 @@ time:empty { binding: <i title="">time</i>; }</pre>
Will Levine,
William Swanson,
Wladimir Palant,
Wojciech Mach,
Wolfram Kriesing,
Yi-An Huang,
Yngve Nysaeter Pettersen,
Expand Down
9 changes: 8 additions & 1 deletion source
Expand Up @@ -22568,6 +22568,12 @@ interface <dfn>CueRangeCallback</dfn> {
</dd>


<!-- insert content sniffing here if we want to define that -->
<!-- (in practice I don't think that's necessary since it's not
like you can do anything with the resource if you sniff it as the
wrong type) ->


<dt id="getting-media-metadata">Once enough of the <span>media
data</span> has been fetched to determine the duration of the
<span>media resource</span>, its dimensions, and other
Expand Down Expand Up @@ -55682,7 +55688,7 @@ interface <dfn>Function</dfn> {
"<code title="">clock.css</code>", and a JavaScript script "<code
title="">clock.js</code>".</p>

<p>Before adding the manifest, three three files might look like
<p>Before adding the manifest, these three files might look like
this:</p>

<pre>EXAMPLE offline/clock/clock1.html</pre>
Expand Down Expand Up @@ -85059,6 +85065,7 @@ time:empty { binding: <i title="">time</i>; }</pre>
Will Levine,
William Swanson,
Wladimir Palant,
Wojciech Mach,
Wolfram Kriesing,
Yi-An Huang,
Yngve Nysaeter Pettersen,
Expand Down

0 comments on commit 0f29ef8

Please sign in to comment.