Skip to content

Commit

Permalink
Make it clear that there is at most one device of each kind before ca…
Browse files Browse the repository at this point in the history
…pture happens
  • Loading branch information
youennf committed Apr 23, 2020
1 parent c15a432 commit 7775c15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions getusermedia.html
Expand Up @@ -2955,10 +2955,11 @@ <h2>Access control model</h2>
information depends on whether or not the browsing context did capture.</p>
<p>If the browsing context did not capture (i.e. {{MediaDevices/getUserMedia()}} was not called or never resolved successfully), the
{{MediaDeviceInfo}} object will contain a valid value for {{MediaDeviceInfo/kind}} but empty strings
for {{MediaDeviceInfo/deviceId}}, {{MediaDeviceInfo/label}}, and {{MediaDeviceInfo/groupId}}.</p>
for {{MediaDeviceInfo/deviceId}}, {{MediaDeviceInfo/label}}, and {{MediaDeviceInfo/groupId}}.
Additionally, at most one device of each {{MediaDeviceInfo/kind}} will be listed in {{MediaDevices/enumerateDevices()}} result.</p>
<p>Otherwise, the
<dfn>MediaDeviceInfo</dfn> object will contain meaningful values for {{MediaDeviceInfo/deviceId}}, {{MediaDeviceInfo/kind}},
{{MediaDeviceInfo/label}}, and {{MediaDeviceInfo/groupId}}.</p>
{{MediaDeviceInfo/label}}, and {{MediaDeviceInfo/groupId}}. All available devices are listed in {{MediaDevices/enumerateDevices()}} result.</p>
</section>
<section>
<h2>Device information can be exposed check</h2>
Expand Down

0 comments on commit 7775c15

Please sign in to comment.