Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[o] (2) add a ui='' attribute to toggle ui on/off on <video> and <audio>
git-svn-id: http://svn.whatwg.org/webapps@697 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 28, 2007
1 parent 037f66f commit 279d975
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 79 deletions.
86 changes: 42 additions & 44 deletions index
Expand Up @@ -12889,8 +12889,9 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
<dd><code title=attr-media-end><a href="#end">end</a></code>

<dd><code title=attr-media-loopcount><a
href="#loopcount">loopcount</a></code></dd>
<!--XXX-VUI<dd><code title="attr-video-ui">ui</code></dd>-->
href="#loopcount">loopcount</a></code>

<dd><code title=attr-media-ui><a href="#ui">ui</a></code>

<dt>Predefined classes that apply to this element:

Expand Down Expand Up @@ -12932,10 +12933,11 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
title=attr-media-start><a href="#start2">start</a></code>, <code
title=attr-media-loopstart><a href="#loopstart">loopstart</a></code>,
<code title=attr-media-loopend><a href="#loopend">loopend</a></code>,
<code title=attr-media-end><a href="#end">end</a></code>, and <code
title=attr-media-loopcount><a href="#loopcount">loopcount</a></code>
attributes are <a href="#media6" title="media element attributes">the
attributes common to all media elements</a>.
<code title=attr-media-end><a href="#end">end</a></code>, <code
title=attr-media-loopcount><a href="#loopcount">loopcount</a></code>, and
<code title=attr-media-ui><a href="#ui">ui</a></code> attributes are <a
href="#media6" title="media element attributes">the attributes common to
all media elements</a>.

<p>The <dfn id=videowidth
title=dom-video-videoWidth><code>videoWidth</code></dfn> DOM attribute
Expand Down Expand Up @@ -13059,8 +13061,9 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
<dd><code title=attr-media-end><a href="#end">end</a></code>

<dd><code title=attr-media-loopcount><a
href="#loopcount">loopcount</a></code></dd>
<!--XXX-VUI<dd><code title="attr-audio-ui">ui</code></dd>-->
href="#loopcount">loopcount</a></code>

<dd><code title=attr-media-ui><a href="#ui">ui</a></code>

<dt>Predefined classes that apply to this element:

Expand Down Expand Up @@ -13099,10 +13102,11 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
title=attr-media-start><a href="#start2">start</a></code>, <code
title=attr-media-loopstart><a href="#loopstart">loopstart</a></code>,
<code title=attr-media-loopend><a href="#loopend">loopend</a></code>,
<code title=attr-media-end><a href="#end">end</a></code>, and <code
title=attr-media-loopcount><a href="#loopcount">loopcount</a></code>
attributes are <a href="#media6" title="media element attributes">the
attributes common to all media elements</a>.
<code title=attr-media-end><a href="#end">end</a></code>, <code
title=attr-media-loopcount><a href="#loopcount">loopcount</a></code>, and
<code title=attr-media-ui><a href="#ui">ui</a></code> attributes are <a
href="#media6" title="media element attributes">the attributes common to
all media elements</a>.

<p>In the <a href="#playing" title=dom-media-PLAYING>PLAYING</a> state,
<code><a href="#audio2">audio</a></code> elements must have their audio
Expand All @@ -13127,8 +13131,6 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>

<h4 id=media><span class=secno>3.14.9. </span>Media elements</h4>
<!--
XXX-VUI comments in the source hide a feature to request that
the user agent show an inline default user interface.
XXX-VTP comments in the source hide the togglePause() method.
-->

Expand Down Expand Up @@ -13156,8 +13158,8 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
readonly attribute float <a href="#position0" title=dom-media-position>position</a>;
readonly attribute <a href="#timeranges">TimeRanges</a> <a href="#played" title=dom-media-played>played</a>;

// controls<!--XXX-VUI
attribute boolean <span title="dom-media-ui">ui</span>;-->
// controls
attribute boolean <a href="#ui0" title=dom-media-ui>ui</a>;
attribute float <a href="#volume" title=dom-media-volume>volume</a>;
attribute boolean <a href="#muted" title=dom-media-muted>muted</a>;
void <a href="#load" title=dom-media-load>load</a>();
Expand All @@ -13181,10 +13183,10 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
title=attr-media-start><a href="#start2">start</a></code>, <code
title=attr-media-loopstart><a href="#loopstart">loopstart</a></code>,
<code title=attr-media-loopend><a href="#loopend">loopend</a></code>,
<code title=attr-media-end><a href="#end">end</a></code>, and <code
title=attr-media-loopcount><a href="#loopcount">loopcount</a></code>,
apply to all <span>media elements</span>. They are defined in this
section.</p>
<code title=attr-media-end><a href="#end">end</a></code>, <code
title=attr-media-loopcount><a href="#loopcount">loopcount</a></code>, and
<code title=attr-media-ui><a href="#ui">ui</a></code>, apply to all
<span>media elements</span>. They are defined in this section.</p>
<!-- XXX v1 features:
* more events from:
http://webkit.org/specs/HTML_Timed_Media_Elements.html
Expand Down Expand Up @@ -14021,24 +14023,21 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
whose start time is less than or equal to t. -->

<h5 id=user-interface><span class=secno>3.14.9.7. </span>User interface</h5>
<!--XXX-VUI
<p>The <dfn title="attr-video-ui"><code>ui</code></dfn> attribute is
a <span>boolean attribute</span>. If the attribute is present, then
the user agent should expose a user interface to the user. This user
interface should include features to begin playback, pause playback,
seek to an arbitrary position in the content (if the content
supports arbitrary seeking), changing the volume, and showing the
video content in manners more suitable to the user (e.g. full-screen
or in an independent resizable window). Other controls may also be
made available. If the attribute is absent, then the user agent
should avoid making a user interface available that could conflict
with an author-provided user interface.</p>

<p>If the attribute is not present, then the user agent should avoid
making a user interface available. User agents may make the
following features available, however, even when the attribute is
absent:</p>
XXX-VUI-->

<p>The <dfn id=ui title=attr-media-ui><code>ui</code></dfn> attribute is a
<a href="#boolean0">boolean attribute</a>. If the attribute is present, or
if <a href="#scripting2">scripting is disabled</a>, then the user agent
should expose a user interface to the user. This user interface should
include features to begin playback, pause playback, seek to an arbitrary
position in the content (if the content supports arbitrary seeking),
change the volume, and showe the media content in manners more suitable to
the user (e.g. full-screen video or in an independent resizable window).
Other controls may also be made available.

<p>If the attribute is absent, then the user agent should avoid making a
user interface available that could conflict with an author-provided user
interface. User agents may make the following features available, however,
even when the attribute is absent:

<p>User agents may provide controls to affect playback of the media
resource (e.g. play, pause, seeking, and volume controls), but such
Expand All @@ -14050,12 +14049,11 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
unpausing playback, for muting or changing the volume of the audio, and
for seeking), user interface features exposed by the user agent must be
implemented in terms of the DOM API described above, so that, e.g., all
the same events fire.</p>
<!--XXX-VUI
<p>The <dfn title="dom-media-ui"><code>ui</code></dfn> DOM attribute
must <span>reflect</span> the content attribute of the same
name.</p>
-->
the same events fire.

<p>The <dfn id=ui0 title=dom-media-ui><code>ui</code></dfn> DOM attribute
must <a href="#reflect">reflect</a> the content attribute of the same
name.</p>
<!-- XXX <h5>Summary</h5> non-normative: summary of events -->

<h5 id=time-range><span class=secno>3.14.9.8. </span>Time range</h5>
Expand Down
66 changes: 31 additions & 35 deletions source
Expand Up @@ -10881,7 +10881,7 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
<dd><code title="attr-media-loopend">loopend</code></dd>
<dd><code title="attr-media-end">end</code></dd>
<dd><code title="attr-media-loopcount">loopcount</code></dd>
<!--XXX-VUI<dd><code title="attr-video-ui">ui</code></dd>-->
<dd><code title="attr-media-ui">ui</code></dd>
<dt>Predefined classes that apply to this element:</dt>
<dd>None.</dd>
<dt>DOM interface:</dt>
Expand Down Expand Up @@ -10918,9 +10918,10 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
title="attr-media-start">start</code>, <code
title="attr-media-loopstart">loopstart</code>, <code
title="attr-media-loopend">loopend</code>, <code
title="attr-media-end">end</code>, and <code
title="attr-media-loopcount">loopcount</code> attributes are <span
title="media element attributes">the attributes common to all media
title="attr-media-end">end</code>, <code
title="attr-media-loopcount">loopcount</code>, and <code
title="attr-media-ui">ui</code> attributes are <span title="media
element attributes">the attributes common to all media
elements</span>.</p>

<p>The <dfn
Expand Down Expand Up @@ -11041,7 +11042,7 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
<dd><code title="attr-media-loopend">loopend</code></dd>
<dd><code title="attr-media-end">end</code></dd>
<dd><code title="attr-media-loopcount">loopcount</code></dd>
<!--XXX-VUI<dd><code title="attr-audio-ui">ui</code></dd>-->
<dd><code title="attr-media-ui">ui</code></dd>
<dt>Predefined classes that apply to this element:</dt>
<dd>None.</dd>
<dt>DOM interface:</dt>
Expand Down Expand Up @@ -11075,9 +11076,10 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
title="attr-media-start">start</code>, <code
title="attr-media-loopstart">loopstart</code>, <code
title="attr-media-loopend">loopend</code>, <code
title="attr-media-end">end</code>, and <code
title="attr-media-loopcount">loopcount</code> attributes are <span
title="media element attributes">the attributes common to all media
title="attr-media-end">end</code>, <code
title="attr-media-loopcount">loopcount</code>, and <code
title="attr-media-ui">ui</code> attributes are <span title="media
element attributes">the attributes common to all media
elements</span>.</p>

<p>In the <span title="dom-media-PLAYING">PLAYING</span> state,
Expand Down Expand Up @@ -11111,8 +11113,6 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
<h4>Media elements</h4>

<!--
XXX-VUI comments in the source hide a feature to request that
the user agent show an inline default user interface.
XXX-VTP comments in the source hide the togglePause() method.
-->

Expand All @@ -11139,8 +11139,8 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
readonly attribute float <span title="dom-media-position">position</span>;
readonly attribute <span>TimeRanges</span> <span title="dom-media-played">played</span>;

// controls<!--XXX-VUI
attribute boolean <span title="dom-media-ui">ui</span>;-->
// controls
attribute boolean <span title="dom-media-ui">ui</span>;
attribute float <span title="dom-media-volume">volume</span>;
attribute boolean <span title="dom-media-muted">muted</span>;
void <span title="dom-media-load">load</span>();
Expand All @@ -11164,9 +11164,10 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
title="attr-media-start">start</code>, <code
title="attr-media-loopstart">loopstart</code>, <code
title="attr-media-loopend">loopend</code>, <code
title="attr-media-end">end</code>, and <code
title="attr-media-loopcount">loopcount</code>, apply to all
<span>media elements</span>. They are defined in this section.</p>
title="attr-media-end">end</code>, <code
title="attr-media-loopcount">loopcount</code>, and <code
title="attr-media-ui">ui</code>, apply to all <span>media
elements</span>. They are defined in this section.</p>

<!-- XXX v1 features:
* more events from:
Expand Down Expand Up @@ -11980,24 +11981,21 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>

<h5>User interface</h5>

<!--XXX-VUI
<p>The <dfn title="attr-video-ui"><code>ui</code></dfn> attribute is
a <span>boolean attribute</span>. If the attribute is present, then
the user agent should expose a user interface to the user. This user
interface should include features to begin playback, pause playback,
seek to an arbitrary position in the content (if the content
supports arbitrary seeking), changing the volume, and showing the
video content in manners more suitable to the user (e.g. full-screen
or in an independent resizable window). Other controls may also be
made available. If the attribute is absent, then the user agent
should avoid making a user interface available that could conflict
with an author-provided user interface.</p>

<p>If the attribute is not present, then the user agent should avoid
making a user interface available. User agents may make the
following features available, however, even when the attribute is
absent:</p>
XXX-VUI-->
<p>The <dfn title="attr-media-ui"><code>ui</code></dfn> attribute is
a <span>boolean attribute</span>. If the attribute is present, or if
<span>scripting is disabled</span>, then the user agent should
expose a user interface to the user. This user interface should
include features to begin playback, pause playback, seek to an
arbitrary position in the content (if the content supports arbitrary
seeking), change the volume, and showe the media content in manners
more suitable to the user (e.g. full-screen video or in an
independent resizable window). Other controls may also be made
available.</p>

<p>If the attribute is absent, then the user agent should avoid
making a user interface available that could conflict with an
author-provided user interface. User agents may make the following
features available, however, even when the attribute is absent:</p>

<p>User agents may provide controls to affect playback of the media
resource (e.g. play, pause, seeking, and volume controls), but such
Expand All @@ -12011,11 +12009,9 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
agent must be implemented in terms of the DOM API described above,
so that, e.g., all the same events fire.</p>

<!--XXX-VUI
<p>The <dfn title="dom-media-ui"><code>ui</code></dfn> DOM attribute
must <span>reflect</span> the content attribute of the same
name.</p>
-->



Expand Down

0 comments on commit 279d975

Please sign in to comment.