diff --git a/getusermedia.html b/getusermedia.html index 363b3ef3..ad43fe5f 100644 --- a/getusermedia.html +++ b/getusermedia.html @@ -791,9 +791,9 @@

Life-cycle

When a {{MediaStreamTrackState/"live"}}, [= track/muted | unmuted =], and [= track/enabled =] track sourced by a device exposed by {{MediaDevices/getUserMedia()}} becomes either - [= track/muted or [= track/enabled | disabled =], - and this brings all tracks connected to the device (regardless - of browsing context) to be either + [= track/muted =] or [= track/enabled | disabled =], + and this brings all tracks connected to the device (across all + [=navigables=] the user agent operates) to be either muted, disabled, or stopped, then the UA SHOULD relinquish the device within 3 seconds while allowing time for a reasonably-observant user to become aware of the transition. The UA SHOULD attempt to reacquire the @@ -1821,7 +1821,7 @@

Constrainable Properties

The UA MAY disguise concurrent use of the camera, by cropping and/or downscaling to mimic native resolutions when "none" is used, but only when the camera is in - use in another browsing context.

Note that + use in another [=navigable=].

Note that getConstraints may not return exactly the same string for strings not in this enum. This @@ -1926,7 +1926,7 @@

Constrainable Properties

its driver, or the OS.

Note: The UA MAY report this value to disguise concurrent use, but only when the camera is in use - in another browsing context.

+ in another [=navigable=].

@@ -3018,7 +3018,8 @@

Methods

Access control model

The algorithm described above means that the access to media device information depends on whether or not the [=relevant global object=]'s [=associated `Document`=] did capture.

-

For camera and microphone devices, if the browsing context did not capture +

For camera and microphone devices, if the [=relevant global object=]'s + [=associated `Document`=] 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}}. @@ -3140,8 +3141,8 @@

Device information exposure

steps:

  1. -

    If the [=relevant global object=]'s [=browsing context=]'s - [=top-level browsing context=] has +

    If the [=relevant global object=]'s [=navigable=]'s + [=top-level traversable=] has system focus, return `true`. Otherwise, return `false`.

  2. @@ -3165,7 +3166,7 @@

    Set device information exposure

A [=User Agent=] MAY at any point set the device information exposure back to false, - for instance if the [=User Agent=] decides to revoke device access on a given browsing context.

+ for instance if the [=User Agent=] decides to revoke device access on a given {{Document}}.

@@ -3226,8 +3227,8 @@

Attributes

The identifier of the represented device. The device MUST be uniquely identified by its identifier and its {{MediaDeviceInfo/kind}}.

-

To to ensure stored identifiers are recognized, the identifier - MUST be the same in documents of the same origin in [=top-level browsing contexts=]. +

To ensure stored identifiers are recognized, the identifier + MUST be the same in {{Document}}s of the [=same origin=] in [=top-level traversables=]. In [=child navigables=], the decision of whether or not the identifier is the same across documents, MUST follow the [=User Agent=]'s partitioning rules for @@ -3570,7 +3571,7 @@

Methods

Read the current [=permission state=] for all candidate devices in candidateSet that are not attached to a live {{MediaStreamTrack}} - in the current browsing context. Remove from + in the current {{Document}}. Remove from candidateSet any candidate whose device's permission state is {{PermissionState/"denied"}}.

If candidateSet is now empty, @@ -3609,12 +3610,12 @@

Methods

use=] a {{PermissionDescriptor}} with its {{PermissionDescriptor/name}} member set to the permission name associated with kind (e.g. "camera" for "video", "microphone" for "audio"), - and, optionally, consider its deviceId member set to + and, optionally, consider its {{DevicePermissionDescriptor/deviceId}} member set to any appropriate device's deviceId, while considering all devices attached to a live and same-permission - {{MediaStreamTrack}} in the current [=browsing - context=] to have permission status {{PermissionState/"granted"}}, + {{MediaStreamTrack}} in the current {{Document}} + to have permission status {{PermissionState/"granted"}}, resulting in a set of provided media. Same-permission in this context means a {{MediaStreamTrack}} that required the same level of