From 7e990b683ee981e17c81d54a8dc1230ca8bac4dc Mon Sep 17 00:00:00 2001
From: Elad Alon {{MediaStreamTrack}}
initialized to true
if source is
[= muted =], and false
otherwise.
[[\MuteReasons]]
++ TODO: Decide whether this replaces {{MediaStreamTrack/[[Muted]]}} + or goes alongside it. +
See ConstrainablePattern Interface for the definition of this method.
+When a {{MediaStreamTrack}} object's {{MediaStreamTrack.getMuteReasons()}} method is invoked, + the [=User Agent=] MUST run following steps:
+Let track be the current {{MediaStreamTrack}} object.
+If track's {{MediaStreamTrack/[[ReadyState]]}} + is {{MediaStreamTrackState/"ended"}}, return an empty sequence. +
++ Return track.{{MediaStreamTrack/[[MuteReasons]]}}. +
+When a {{MediaStreamTrack}} object's {{MediaStreamTrack.getSettings()}} method is invoked, @@ -1588,6 +1615,38 @@
+ {{MuteReason}} represents information about why a {{MediaStreamTrack}} + is [=muted=]. Multiple reasons might apply concurrently. The information + exposed to applications might depend on certain conditions. +
++ [Exposed=Window] + interface MuteReason { + readonly attribute boolean explicitUpstream; + }; ++
+ true
if the reason is an explicit decision to mute by an upstream
+ entity such as the user agent, operating system or hardware.
+
+ false
if the reason is anything else, such as an error
+ or a temporary absence of media for an unspecified reason.
+
{{MediaTrackSettings}} represents the
From 88ab7d04ecb0e3a314c61f1cee2666f2ed697cff Mon Sep 17 00:00:00 2001
From: Elad Alon {{MuteReason}} Members
false
if the reason is anything else, such as an error
- or a temporary absence of media for an unspecified reason.
+ or a temporary absence of media for any reason.
+ What additional information can be exposed, and under which conditions,
+ is actively debated. One proposal is to expose the MuteSource, with potential
+ values such as "user-agent"
, "operating-system"
,
+ "hardware"
and "unspecified"
.
+