Skip to content

Commit

Permalink
Merge pull request #718 from youennf/extend-enumerateDevices
Browse files Browse the repository at this point in the history
Extend enumerateDevices algorithm to handle non camera and microphone devices
  • Loading branch information
jan-ivar committed Aug 27, 2020
2 parents e996925 + d3ecbd7 commit 25c2d8e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions getusermedia.html
Expand Up @@ -2905,6 +2905,13 @@ <h2>Methods</h2>
contains a {{MediaDeviceInfo}} representing a microphone, abort these steps and
continue with the next device (if any).</p>
</li>
<li>
<p>If <var>device</var> is neither a camera nor a microphone, run the
<a>exposure decision algorithm for devices other than camera and microphone</a>,
with <var>device</var> as input.
If the result of this algorithm is <code>false</code>,
abort these steps and continue with the next device (if any).</p>
</li>
<li>
<p>Let <var>deviceInfo</var> be the result of
<a>creating a device info object</a> to represent <var>device</var>.</p>
Expand Down Expand Up @@ -3046,6 +3053,14 @@ <h2>Set device information exposure</h2>
for instance if the User Agent decides to revoke device access on a given browsing context.</p>
</div>
</section>
<section>
<h2>Exposure decision algorithm for devices other than camera and microphone</h2>
<p>The <dfn data-lt="device-exposure-decision-non-camera-microphone" id=
"device-exposure-decision-non-camera-microphone">exposure decision algorithm for devices other than camera and microphone</dfn>
takes a <var>device</var> as input and returns a boolean to decide whether exposing the device 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>
</section>
<section>
<h2>Device Info</h2>
Expand Down

0 comments on commit 25c2d8e

Please sign in to comment.