[html5] r7553 - [giow] (1) Match implementations better regarding intrinsic size of <video> with [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Nov 30 14:14:15 PST 2012
Author: ianh
Date: 2012-11-30 14:14:13 -0800 (Fri, 30 Nov 2012)
New Revision: 7553
Modified:
complete.html
index
source
Log:
[giow] (1) Match implementations better regarding intrinsic size of <video> with poster frame. This also changes the show poster flag to not change while script is running, so that you can't detect the change in intrinsic size if playback begins while script is executing.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17979
Affected topics: HTML, Video and Audio
Modified: complete.html
===================================================================
--- complete.html 2012-11-30 21:45:19 UTC (rev 7552)
+++ complete.html 2012-11-30 22:14:13 UTC (rev 7553)
@@ -27872,17 +27872,15 @@
requirement can be implemented by using the <a href=#video-object-fit>style rule suggested in the rendering
section</a>.</p>
- <p>The intrinsic width of a <code><a href=#the-video-element>video</a></code> element's playback
- area is the <a href=#concept-video-intrinsic-width title=concept-video-intrinsic-width>intrinsic
- width</a> of the video resource, if that is available; otherwise
- it is the intrinsic width of the <a href=#poster-frame>poster frame</a>, if that
- is available; otherwise it is 300 CSS pixels.</p>
+ <p>The intrinsic width of a <code><a href=#the-video-element>video</a></code> element's playback area is the intrinsic width of
+ the <a href=#poster-frame>poster frame</a>, if that is available and the element currently
+ <a href=#represents>represents</a> its poster frame; otherwise, it is the <a href=#concept-video-intrinsic-width title=concept-video-intrinsic-width>intrinsic width</a> of the video resource, if that is
+ available; otherwise it is 300 CSS pixels.</p>
- <p>The intrinsic height of a <code><a href=#the-video-element>video</a></code> element's playback
- area is the <a href=#concept-video-intrinsic-height title=concept-video-intrinsic-height>intrinsic
- height</a> of the video resource, if that is available; otherwise
- it is the intrinsic height of the <a href=#poster-frame>poster frame</a>, if that
- is available; otherwise it is 150 CSS pixels.</p>
+ <p>The intrinsic height of a <code><a href=#the-video-element>video</a></code> element's playback area is the intrinsic height of
+ the <a href=#poster-frame>poster frame</a>, if that is available and the element currently
+ <a href=#represents>represents</a> its poster frame; otherwise it is the <a href=#concept-video-intrinsic-height title=concept-video-intrinsic-height>intrinsic height</a> of the video resource, if that is
+ available; otherwise it is 150 CSS pixels.</p>
<hr><p>User agents should provide controls to enable or disable the
display of closed captions, audio description tracks, and other
@@ -29585,15 +29583,21 @@
<li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code> at
the <a href=#media-element>media element</a>.</li>
- <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> value and <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.
- Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code>
- attribute to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</li>
+ <li>
+ <p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code>
+ attribute has a value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set
+ the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to the
+ <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> value, set the element's
+ <a href=#show-poster-flag>show poster flag</a> to true, and <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.</p>
+
+ <p>Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code>
+ attribute to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</p>
+
+ </li>
+
<li><p>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>.</li>
- <li><p>Set the element's <a href=#show-poster-flag>show poster flag</a> to true.</li>
-
<li><p>Abort the overall <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</li>
@@ -29618,15 +29622,21 @@
<li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code> at
the <a href=#media-element>media element</a>.</li>
- <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> value and <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.
- Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code>
- attribute to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</li>
+ <li>
+ <p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code>
+ attribute has a value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set
+ the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to the
+ <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> value, set the element's
+ <a href=#show-poster-flag>show poster flag</a> to true, and <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.</p>
+
+ <p>Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code>
+ attribute to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</p>
+
+ </li>
+
<li><p>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>.</li>
- <li><p>Set the element's <a href=#show-poster-flag>show poster flag</a> to true.</li>
-
<li><p>Abort the overall <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</li>
@@ -30181,8 +30191,9 @@
<a href=#media-element>media element</a>'s <code><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set>active sandboxing flag set</a>
does not have the <a href=#sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing context flag</a> set, then
the user agent may also set the <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code> attribute to
- false, <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-play><a href=#event-media-play>play</a></code>, and <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-playing><a href=#event-media-playing>playing</a></code>.</p>
+ false, set the element's <a href=#show-poster-flag>show poster flag</a> to false, <a href=#queue-a-task>queue a task</a> to
+ <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-play><a href=#event-media-play>play</a></code>, and
+ <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-playing><a href=#event-media-playing>playing</a></code>.</p>
<p class=note>User agents do not need to support autoplay, and it is suggested that user
agents honor user preferences on the matter. Authors are urged to use the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute rather than using script to force the
@@ -30495,6 +30506,8 @@
<ol><li><p>Change the value of <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code> to false.</li>
+ <li><p>Set the element's <a href=#show-poster-flag>show poster flag</a> to false.</li>
+
<li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-play><a href=#event-media-play>play</a></code> at the element.</li>
<li>
@@ -30575,10 +30588,6 @@
the stream's playback rate) the client doesn't actually have to drop or interpolate any
frames.</p>
- <p>Any time a <a href=#media-element>media element</a>'s <a href=#current-playback-position>current playback position</a> changes due to
- the monotonic increase required above, the element's <a href=#show-poster-flag>show poster flag</a> must be set to
- false.</p>
-
<p>Any time the user agent <a href=#provide-a-stable-state title="provide a stable state">provides a stable state</a>,
the <a href=#official-playback-position>official playback position</a> must be set to the <a href=#current-playback-position>current playback
position</a>.</p>
Modified: index
===================================================================
--- index 2012-11-30 21:45:19 UTC (rev 7552)
+++ index 2012-11-30 22:14:13 UTC (rev 7553)
@@ -27872,17 +27872,15 @@
requirement can be implemented by using the <a href=#video-object-fit>style rule suggested in the rendering
section</a>.</p>
- <p>The intrinsic width of a <code><a href=#the-video-element>video</a></code> element's playback
- area is the <a href=#concept-video-intrinsic-width title=concept-video-intrinsic-width>intrinsic
- width</a> of the video resource, if that is available; otherwise
- it is the intrinsic width of the <a href=#poster-frame>poster frame</a>, if that
- is available; otherwise it is 300 CSS pixels.</p>
+ <p>The intrinsic width of a <code><a href=#the-video-element>video</a></code> element's playback area is the intrinsic width of
+ the <a href=#poster-frame>poster frame</a>, if that is available and the element currently
+ <a href=#represents>represents</a> its poster frame; otherwise, it is the <a href=#concept-video-intrinsic-width title=concept-video-intrinsic-width>intrinsic width</a> of the video resource, if that is
+ available; otherwise it is 300 CSS pixels.</p>
- <p>The intrinsic height of a <code><a href=#the-video-element>video</a></code> element's playback
- area is the <a href=#concept-video-intrinsic-height title=concept-video-intrinsic-height>intrinsic
- height</a> of the video resource, if that is available; otherwise
- it is the intrinsic height of the <a href=#poster-frame>poster frame</a>, if that
- is available; otherwise it is 150 CSS pixels.</p>
+ <p>The intrinsic height of a <code><a href=#the-video-element>video</a></code> element's playback area is the intrinsic height of
+ the <a href=#poster-frame>poster frame</a>, if that is available and the element currently
+ <a href=#represents>represents</a> its poster frame; otherwise it is the <a href=#concept-video-intrinsic-height title=concept-video-intrinsic-height>intrinsic height</a> of the video resource, if that is
+ available; otherwise it is 150 CSS pixels.</p>
<hr><p>User agents should provide controls to enable or disable the
display of closed captions, audio description tracks, and other
@@ -29585,15 +29583,21 @@
<li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code> at
the <a href=#media-element>media element</a>.</li>
- <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> value and <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.
- Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code>
- attribute to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</li>
+ <li>
+ <p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code>
+ attribute has a value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set
+ the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to the
+ <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> value, set the element's
+ <a href=#show-poster-flag>show poster flag</a> to true, and <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.</p>
+
+ <p>Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code>
+ attribute to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</p>
+
+ </li>
+
<li><p>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>.</li>
- <li><p>Set the element's <a href=#show-poster-flag>show poster flag</a> to true.</li>
-
<li><p>Abort the overall <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</li>
@@ -29618,15 +29622,21 @@
<li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code> at
the <a href=#media-element>media element</a>.</li>
- <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> value and <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.
- Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code>
- attribute to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</li>
+ <li>
+ <p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code>
+ attribute has a value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set
+ the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to the
+ <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> value, set the element's
+ <a href=#show-poster-flag>show poster flag</a> to true, and <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.</p>
+
+ <p>Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code>
+ attribute to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</p>
+
+ </li>
+
<li><p>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>.</li>
- <li><p>Set the element's <a href=#show-poster-flag>show poster flag</a> to true.</li>
-
<li><p>Abort the overall <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</li>
@@ -30181,8 +30191,9 @@
<a href=#media-element>media element</a>'s <code><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set>active sandboxing flag set</a>
does not have the <a href=#sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing context flag</a> set, then
the user agent may also set the <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code> attribute to
- false, <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-play><a href=#event-media-play>play</a></code>, and <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-playing><a href=#event-media-playing>playing</a></code>.</p>
+ false, set the element's <a href=#show-poster-flag>show poster flag</a> to false, <a href=#queue-a-task>queue a task</a> to
+ <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-play><a href=#event-media-play>play</a></code>, and
+ <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-playing><a href=#event-media-playing>playing</a></code>.</p>
<p class=note>User agents do not need to support autoplay, and it is suggested that user
agents honor user preferences on the matter. Authors are urged to use the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute rather than using script to force the
@@ -30495,6 +30506,8 @@
<ol><li><p>Change the value of <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code> to false.</li>
+ <li><p>Set the element's <a href=#show-poster-flag>show poster flag</a> to false.</li>
+
<li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-play><a href=#event-media-play>play</a></code> at the element.</li>
<li>
@@ -30575,10 +30588,6 @@
the stream's playback rate) the client doesn't actually have to drop or interpolate any
frames.</p>
- <p>Any time a <a href=#media-element>media element</a>'s <a href=#current-playback-position>current playback position</a> changes due to
- the monotonic increase required above, the element's <a href=#show-poster-flag>show poster flag</a> must be set to
- false.</p>
-
<p>Any time the user agent <a href=#provide-a-stable-state title="provide a stable state">provides a stable state</a>,
the <a href=#official-playback-position>official playback position</a> must be set to the <a href=#current-playback-position>current playback
position</a>.</p>
Modified: source
===================================================================
--- source 2012-11-30 21:45:19 UTC (rev 7552)
+++ source 2012-11-30 22:14:13 UTC (rev 7553)
@@ -29901,17 +29901,17 @@
href="#video-object-fit">style rule suggested in the rendering
section</a>.</p>
- <p>The intrinsic width of a <code>video</code> element's playback
- area is the <span title="concept-video-intrinsic-width">intrinsic
- width</span> of the video resource, if that is available; otherwise
- it is the intrinsic width of the <span>poster frame</span>, if that
- is available; otherwise it is 300 CSS pixels.</p>
+ <p>The intrinsic width of a <code>video</code> element's playback area is the intrinsic width of
+ the <span>poster frame</span>, if that is available and the element currently
+ <span>represents</span> its poster frame; otherwise, it is the <span
+ title="concept-video-intrinsic-width">intrinsic width</span> of the video resource, if that is
+ available; otherwise it is 300 CSS pixels.</p>
- <p>The intrinsic height of a <code>video</code> element's playback
- area is the <span title="concept-video-intrinsic-height">intrinsic
- height</span> of the video resource, if that is available; otherwise
- it is the intrinsic height of the <span>poster frame</span>, if that
- is available; otherwise it is 150 CSS pixels.</p>
+ <p>The intrinsic height of a <code>video</code> element's playback area is the intrinsic height of
+ the <span>poster frame</span>, if that is available and the element currently
+ <span>represents</span> its poster frame; otherwise it is the <span
+ title="concept-video-intrinsic-height">intrinsic height</span> of the video resource, if that is
+ available; otherwise it is 150 CSS pixels.</p>
<hr>
@@ -31894,20 +31894,23 @@
<li><p><span>Fire a simple event</span> named <code title="event-media-error">error</code> at
the <span>media element</span>.</p></li>
- <li><p>If the <span>media element</span>'s <code
- title="dom-media-readyState">readyState</code> attribute has a value equal to <code
- title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code>, set the element's <code
- title="dom-media-networkState">networkState</code> attribute to the <code
- title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> value and <span>fire a simple
- event</span> named <code title="event-media-emptied">emptied</code> at the element.
- Otherwise, set the element's <code title="dom-media-networkState">networkState</code>
- attribute to the <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> value.</p></li>
+ <li>
+ <p>If the <span>media element</span>'s <code title="dom-media-readyState">readyState</code>
+ attribute has a value equal to <code title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code>, set
+ the element's <code title="dom-media-networkState">networkState</code> attribute to the
+ <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> value, set the element's
+ <span>show poster flag</span> to true, and <span>fire a simple event</span> named <code
+ title="event-media-emptied">emptied</code> at the element.</p>
+
+ <p>Otherwise, set the element's <code title="dom-media-networkState">networkState</code>
+ attribute to the <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> value.</p>
+
+ </li>
+
<li><p>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></li>
- <li><p>Set the element's <span>show poster flag</span> to true.</p></li>
-
<li><p>Abort the overall <span title="concept-media-load-algorithm">resource selection
algorithm</span>.</p></li>
@@ -31936,20 +31939,23 @@
<li><p><span>Fire a simple event</span> named <code title="event-media-abort">abort</code> at
the <span>media element</span>.</p></li>
- <li><p>If the <span>media element</span>'s <code
- title="dom-media-readyState">readyState</code> attribute has a value equal to <code
- title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code>, set the element's <code
- title="dom-media-networkState">networkState</code> attribute to the <code
- title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> value and <span>fire a simple
- event</span> named <code title="event-media-emptied">emptied</code> at the element.
- Otherwise, set the element's <code title="dom-media-networkState">networkState</code>
- attribute to the <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> value.</p></li>
+ <li>
+ <p>If the <span>media element</span>'s <code title="dom-media-readyState">readyState</code>
+ attribute has a value equal to <code title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code>, set
+ the element's <code title="dom-media-networkState">networkState</code> attribute to the
+ <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> value, set the element's
+ <span>show poster flag</span> to true, and <span>fire a simple event</span> named <code
+ title="event-media-emptied">emptied</code> at the element.</p>
+
+ <p>Otherwise, set the element's <code title="dom-media-networkState">networkState</code>
+ attribute to the <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> value.</p>
+
+ </li>
+
<li><p>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></li>
- <li><p>Set the element's <span>show poster flag</span> to true.</p></li>
-
<li><p>Abort the overall <span title="concept-media-load-algorithm">resource selection
algorithm</span>.</p></li>
@@ -32603,9 +32609,10 @@
<span>media element</span>'s <code>Document</code>'s <span>active sandboxing flag set</span>
does not have the <span>sandboxed automatic features browsing context flag</span> set, then
the user agent may also set the <code title="dom-media-paused">paused</code> attribute to
- false, <span>queue a task</span> to <span>fire a simple event</span> named <code
- title="event-media-play">play</code>, and <span>queue a task</span> to <span>fire a simple
- event</span> named <code title="event-media-playing">playing</code>.</p>
+ false, set the element's <span>show poster flag</span> to false, <span>queue a task</span> to
+ <span>fire a simple event</span> named <code title="event-media-play">play</code>, and
+ <span>queue a task</span> to <span>fire a simple event</span> named <code
+ title="event-media-playing">playing</code>.</p>
<p class="note">User agents do not need to support autoplay, and it is suggested that user
agents honor user preferences on the matter. Authors are urged to use the <code
@@ -32991,6 +32998,8 @@
<li><p>Change the value of <code title="dom-media-paused">paused</code> to false.</p></li>
+ <li><p>Set the element's <span>show poster flag</span> to false.</p></li>
+
<li><p><span>Queue a task</span> to <span>fire a simple event</span> named <code
title="event-media-play">play</code> at the element.</p></li>
@@ -33100,10 +33109,6 @@
the stream's playback rate) the client doesn't actually have to drop or interpolate any
frames.</p>
- <p>Any time a <span>media element</span>'s <span>current playback position</span> changes due to
- the monotonic increase required above, the element's <span>show poster flag</span> must be set to
- false.</p>
-
<p>Any time the user agent <span title="provide a stable state">provides a stable state</span>,
the <span>official playback position</span> must be set to the <span>current playback
position</span>.</p>
More information about the Commit-Watchers
mailing list