Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update enumerateDevices to list default capture devices as first. #636

Merged
merged 1 commit into from Oct 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions getusermedia.html
Expand Up @@ -2820,7 +2820,8 @@ <h3>MediaDevices</h3>
</li>
</ol>
<p>When new media input and/or output devices are made available, or any
available input and/or output device becomes unavailable, the User Agent
available input and/or output device becomes unavailable, or the system
default camera changed, or the system default microphone changed, the User Agent
MUST run the following steps in browsing contexts for which the
<a>device information can be exposed check</a> returns <code>true</code>,
but in no other contexts:</p>
Expand Down Expand Up @@ -2980,8 +2981,9 @@ <h2>Methods</h2>
section 4.4 or 4.5 of RFC 4122.</p>
</li>
<li>
<p>Append <var>deviceInfo</var> to
<var>resultList</var>.</p>
<p>If <var>device</var> is the system default camera or the system default
microphone, prepend <var>deviceInfo</var> to <var>resultList</var>.
Otherwise, append <var>deviceInfo</var> to <var>resultList</var>.</p>
</li>
</ol>
</li>
Expand Down