You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To inihibit the usage of such a covert channel, the API implements these mitigations.
11757
+
To inhibit the usage of such a covert channel, the API implements these mitigations.
11758
11758
- The values returned by the API should not be updated more than once per second.
11759
11759
- The api should be restricted to sites fulfill at least one of the following criteria:
11760
11760
1. The site has obtained <a href="https://w3c.github.io/mediacapture-main/#dom-mediadevices-getusermedia">getUserMedia</a> permission.
11761
11761
11762
11762
Note: The reasoning is that if a site has obtained <a href="https://w3c.github.io/mediacapture-main/#dom-mediadevices-getusermedia">getUserMedia</a> permission, it can receive glitch information or communicate efficiently through use of the microphone, making access to the information provided by {{AudioPlayoutStats}} redundant. These options include detecting glitches through gaps in the microphone signal, or communicating using human-inaudible sine waves. If microphone access is ever made safer in this regard, this condition should be reconsidered.
11763
11763
1. The document is [=Document/fully active=] and its [=Document/visibility state=] is `"visible"`.
11764
11764
11765
-
Note: Assuming that neither cooperating site has microphone permission, this criteria ensures that the site that receives the covert signal must be visible, restricting the conditions under which the covert channel can be used. It makes it impossible for sites to communicate with each other using the covert channel while not visible.
11765
+
Note: Assuming that neither cooperating site has microphone permission, this criterion ensures that the site that receives the covert signal must be visible, restricting the conditions under which the covert channel can be used. It makes it impossible for sites to communicate with each other using the covert channel while not visible.
11766
11766
11767
11767
<h4>Usage example</h4>
11768
11768
This example shows how the {{AudioPlayoutStats}} can be used to calculate audio underrun and latency statistics,
11769
11769
and what the statistics might be used for.
11770
11770
<pre line-numbers class="example" highlight="js">
11771
-
var oldTotalDuration = audioContext.playoutStats.totalDuration;
11771
+
let oldTotalDuration = audioContext.playoutStats.totalDuration;
11772
11772
var oldUnderrunDuration = audioContext.playoutStats.underrunDuration;
11773
11773
var oldUnderrunEvents = audioContext.playoutStats.underrunEvents;
0 commit comments