Skip to content

Commit

Permalink
Merge pull request #900 from youennf/use-device-kind-exposure-checks-…
Browse files Browse the repository at this point in the history
…in-enumerateDevices

Update enumerateDevices algorithm to make use of device-kind specific exposure checks when building cameraList and microphoneList.
  • Loading branch information
youennf authored Oct 6, 2022
2 parents bff0e6a + a8699aa commit e83b870
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -2933,16 +2933,12 @@ <h2>Methods</h2>
</ol>
</li>
<li>
<p>If [=device information can be exposed=] is <code>false</code>,
run the following sub steps:<p>
<ol>
<li>
<p>If <var>microphoneList</var> is not empty, truncate <var>microphoneList</var> to its first item.</p>
</li>
<li>
<p>If <var>cameraList</var> is not empty, truncate <var>cameraList</var> to its first item.</p>
</li>
</ol>
<p>If [=microphone information can be exposed=] is <code>false</code>,
truncate <var>microphoneList</var> to its first item.</p>
</li>
<li>
<p>If [=camera information can be exposed=] is <code>false</code>,
truncate <var>cameraList</var> to its first item.</p>
</li>
<li>
<p>Run the following sub steps for each discovered device in <var>deviceList</var>, <var>device</var>:</p>
Expand Down

0 comments on commit e83b870

Please sign in to comment.