Skip to content

Commit

Permalink
Align dfn of enabled with muted
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Mar 25, 2024
1 parent 66d0801 commit c198b10
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions getusermedia.html
Expand Up @@ -771,7 +771,7 @@ <h4>Life-cycle</h4>
<p>In the live state, the track is active and media is
available for use by consumers (but may be replaced by
zero-information-content if the {{MediaStreamTrack}} is
[= MediaStreamTrack/muted =] or [= enabled | disabled =], see below).</p>
[= MediaStreamTrack/muted =] or [= MediaStreamTrack/enabled | disabled =], see below).</p>
<p>A muted or disabled {{MediaStreamTrack}} renders
either silence (audio), black frames (video), or a
zero-information-content equivalent. For example, a video element
Expand All @@ -788,17 +788,17 @@ <h4>Life-cycle</h4>
unstopped track connected to this device becomes un-muted or enabled
again.</p>
<p>When a {{MediaStreamTrackState/"live"}}, [= MediaStreamTrack/muted | unmuted =], and
[= track/enabled =] track sourced by a device exposed
[= MediaStreamTrack/enabled =] track sourced by a device exposed
by {{MediaDevices/getUserMedia()}} becomes either
[= MediaStreamTrack/muted =] or [= track/enabled | disabled =],
[= MediaStreamTrack/muted =] or [= MediaStreamTrack/enabled | disabled =],
and this brings <em>all</em> tracks connected to the device (across all
[=navigables=] the user agent operates) to be either
muted, disabled, or stopped, then the UA SHOULD relinquish the device
within 3 seconds while allowing time for a reasonably-observant user to
become aware of the transition. The UA SHOULD attempt to reacquire the
device as soon as any live track sourced by the device
becomes both [= MediaStreamTrack/muted | unmuted =] and
[= track/enabled =] again, provided that track's
[= MediaStreamTrack/enabled =] again, provided that track's
[=relevant global object=]'s [=associated `Document`=]
[=Document/is in view=] at that time. If the
document is not [=Document/is in view|in view=] at that time,
Expand Down Expand Up @@ -831,7 +831,7 @@ <h4>Life-cycle</h4>
result of the user hitting a hardware switch or toggling a control in
the operating system / [=User Agent=] chrome. A track can also be muted by the
[=User Agent=].</p>
<p>Applications are able to [= track/enabled | enable =] or
<p>Applications are able to [= MediaStreamTrack/enabled | enable =] or
disable a {{MediaStreamTrack}} to prevent it from
rendering media from the source. A muted track will however, regardless
of the enabled state, render silence and blackness. A disabled track is
Expand Down Expand Up @@ -1037,14 +1037,14 @@ <h2>Attributes</h2>
<dd>
<p>The <dfn id=
"dom-mediastreamtrack-enabled">enabled</dfn>
attribute controls the [= track/enabled =] state for the object.</p>
attribute controls the [= MediaStreamTrack/enabled =] state for the object.</p>
<p>On getting,
[=this=].{{MediaStreamTrack/[[Enabled]]}} MUST be returned.
On setting,
[=this=].{{MediaStreamTrack/[[Enabled]]}} MUST be set to the
new value.</p>
<p class="note">Thus, after a
{{MediaStreamTrack}} has [= MediaStreamTrack/ended =], its {{MediaStreaMtrack/enabled}} attribute
{{MediaStreamTrack}} has [= MediaStreamTrack/ended =], its {{MediaStreamTrack/enabled}} attribute
still changes value when set; it just doesn't do anything with
that new value.</p>
</dd>
Expand Down Expand Up @@ -4182,8 +4182,8 @@ <h2>Implementation Suggestions</h2>
</li>
<li>
<p>A web page not [=Document/is in view|in view=]
<a data-lt=enabled>re-enables</a> a track when all tracks from that
source are <a data-lt=enabled>disabled</a>, in order to delay
[=MediaStreamTrack/enabled|re-enables=] a track when all tracks from that
source are [=MediaStreamTrack/enabled|disabled=], in order to delay
resumption of capture until the page [=Document/is in view=].
</p>
</li>
Expand All @@ -4201,7 +4201,7 @@ <h2>Implementation Suggestions</h2>
</li>
<li>
<p>A web page comes [=Document/is in view|into view=] and
has one or more <a>enabled</a> tracks that are also
has one or more [=MediaStreamTrack/enabled=] tracks that are also
[= MediaStreamTrack/muted =].
</p>
</li>
Expand Down

0 comments on commit c198b10

Please sign in to comment.