From 7775c1577bf4515d73afb9d683537b40cf2c5976 Mon Sep 17 00:00:00 2001 From: Youenn Fablet Date: Thu, 23 Apr 2020 14:50:07 +0200 Subject: [PATCH] Make it clear that there is at most one device of each kind before capture happens --- getusermedia.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/getusermedia.html b/getusermedia.html index 2a860bbe..9759554f 100644 --- a/getusermedia.html +++ b/getusermedia.html @@ -2955,10 +2955,11 @@

Access control model

information depends on whether or not the browsing context did capture.

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}}.

+ for {{MediaDeviceInfo/deviceId}}, {{MediaDeviceInfo/label}}, and {{MediaDeviceInfo/groupId}}. + Additionally, at most one device of each {{MediaDeviceInfo/kind}} will be listed in {{MediaDevices/enumerateDevices()}} result.

Otherwise, the MediaDeviceInfo object will contain meaningful values for {{MediaDeviceInfo/deviceId}}, {{MediaDeviceInfo/kind}}, - {{MediaDeviceInfo/label}}, and {{MediaDeviceInfo/groupId}}.

+ {{MediaDeviceInfo/label}}, and {{MediaDeviceInfo/groupId}}. All available devices are listed in {{MediaDevices/enumerateDevices()}} result.

Device information can be exposed check