diff --git a/source b/source index 9155017c896..fd100c5b88d 100644 --- a/source +++ b/source @@ -40709,12 +40709,7 @@ interface MediaError {
While the direction of playback is backwards, any corresponding audio must be
- muted. While the element's playbackRate is so low or so high that the user agent
- cannot play audio usefully, the corresponding audio must also be muted. If the element's playbackRate is not 1.0 and If the element's playbackRate is not 1.0 and preservesPitch is true, the user agent must apply pitch
adjustment to preserve the original pitch of the audio. Otherwise, the user agent must speed up
or slow down the audio without any pitch adjustment.
DOMException must be thrown instead.
A media element can also be muted. If anything is muting the element, then it is muted. (For example, when the - direction of playback is backwards, the element is muted.)
+A media element is muted if any of the following are true:
+ +Its muted state is true.
Its muted state is "default" and it has a muted content
+ attribute.
The direction of playback is backwards.
Its playbackRate is so low or so high that the
+ user agent cannot play audio usefully.
Each media element has a muted
+ state, which is either true, false, or "default"; it is initially "default". User agents may set a media element's muted state to true or false (e.g., remembering the last
+ set value across sessions, on a per-site basis or otherwise).
The muted
+ getter steps are to return true if this is muted; otherwise false.
The muted IDL
- attribute must return the value to which it was last set. When a media element is
- created, if the element has a muted content attribute
- specified, then the muted IDL attribute should be set to
- true; otherwise, the user agents may set the value to the user's preferred value (e.g. remembering
- the last set value across sessions, on a per-site basis or otherwise). While the muted IDL attribute is set to true, the media element
- must be muted.
The muted setter steps are to set this's
+ muted state to the given value.
If the user agent's volume locked is true, then return the system volume.
If the element's audio output is muted, then - return zero.
If the element is muted, then return 0.
Let volume be the playback volume of the audio portions of the media element, in range 0.0 (silent) to @@ -43416,20 +43428,18 @@ red:89
The muted
content attribute on media elements is a boolean
- attribute that controls the default state of the audio output of the media
- resource, potentially overriding user preferences.
This attribute has no dynamic effect (it only controls the default state of the - element).
+This attribute has no further effect once the muted setter has been invoked or the user indicated a
+ preference.
This video (an advertisement) autoplays, but to avoid annoying users, it does so without sound, and allows the user to turn the sound on. The user agent can pause the video if it's unmuted without a user interaction.
<video src="adverts.cgi?kind=video" controls autoplay loop muted></video>
-