Skip to content

Commit

Permalink
Merge pull request #959 from jan-ivar/exportmediadevices
Browse files Browse the repository at this point in the history
Add mediaDevices arg to [=exposure decision algorithm for devices other than camera and microphone=].
  • Loading branch information
youennf committed May 4, 2023
2 parents 0360058 + ab33394 commit 421a3ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -2989,7 +2989,8 @@ <h2>Methods</h2>
</li>
<li>
<p>Run the [=exposure decision algorithm for devices other than camera and microphone=],
with <var>device</var>, <var>microphoneList</var> and <var>cameraList</var> as input.
with <var>device</var>, <var>microphoneList</var>, <var>cameraList</var> and
<var>mediaDevices</var> as input.
If the result of this algorithm is <code>false</code>,
abort these sub steps and continue with the next device (if any).</p>
</li>
Expand Down Expand Up @@ -3204,8 +3205,9 @@ <h2>Set device information exposure</h2>
<h2>Exposure decision algorithm for devices other than camera and microphone</h2>
<p>The <dfn data-export id=
"device-exposure-decision-non-camera-microphone">exposure decision algorithm for devices other than camera and microphone</dfn>
takes a <var>device</var>, <var>microphoneList</var> and <var>cameraList</var> as input
and returns a boolean to decide whether exposing the device to the web page or not.</p>
takes a <var>device</var>, <var>microphoneList</var>, <var>cameraList</var> and
<var>mediaDevices</var> as input and returns a boolean to decide whether to expose
information about <var>device</var> to the web page or not.</p>
<p>By default, it returns <code>false</code>.</p>
<p>Other specifications can define the algorithm for specific device types.
</section>
Expand Down

0 comments on commit 421a3ad

Please sign in to comment.