From 3f82c08c0b2c69cc1e8231eddf232c474eb4db9f Mon Sep 17 00:00:00 2001
From: Jan-Ivar Bruaroey Let lastExposedDevices be the result of
[=creating a list of device info objects=] for
{{MediaDevices/[[storedDeviceList]]}} and the
- [=relevant settings object=]'s
[=relevant global object=]'s [=associated `Document`=]. Let newExposedDevices be the result of
[=creating a list of device info objects=] for
- deviceList and the [=relevant settings object=]'s
- [=relevant global object=]'s [=associated `Document`=].Life-cycle
device as soon as any live track sourced by the device
becomes both [= track/muted | unmuted =] and
[= track/enabled =] again, provided that track's
- [=relevant settings object=]'s [=relevant global object=]'s [=associated `Document`=]
+ [=relevant global object=]'s [=associated `Document`=]
has focus at that time. If the
document does not have focus at that time,
the UA SHOULD instead queue a task to mute the
@@ -2740,7 +2740,6 @@ {{MediaDevices}}
{{MediaDevices}}
If the {{MediaDeviceInfo}} objects in newExposedDevices @@ -2835,8 +2834,8 @@
Let document be the [=relevant settings object=]'s - [=relevant global object=]'s [=associated `Document`=].
+Let document be the [=relevant global object=]'s + [=associated `Document`=].
The [=User Agent=] MUST wait to proceed to the next step until @@ -2958,7 +2957,8 @@
As long as the [=relevant settings object=]'s [=relevant global object=]'s [=associated `Document`=] did not capture, this method will +
As long as the [=relevant global object=]'s + [=associated `Document`=] did not capture, this method will limit exposure to two bits of information: whether there is a camera and whether there is a microphone. A [=User Agent=] may mitigate this by pretending the system has a camera and a microphone, for instance until the @@ -3042,7 +3042,8 @@
true
.
If the [=relevant settings object=]'s [=relevant global object=]'s [=associated `Document`=] is [=Document/fully active=] and +
If the [=relevant global object=]'s [=associated `Document`=] is
+ [=Document/fully active=] and
has focus, return
true
.
If any of the local devices of kind "videoinput" are attached to a live
- {{MediaStreamTrack}} in the [=relevant settings object=]'s
- [=relevant global object=]'s [=associated `Document`=], return
- true
.
true
.
Return {{MediaDevices/[[canExposeCameraInfo]]}}.
@@ -3085,9 +3085,8 @@If any of the local devices of kind "audioinput" are attached to a live
- {{MediaStreamTrack}} in the [=relevant settings object=]'s
- [=relevant global object=]'s [=associated `Document`=], return
- true
.
true
.
Return {{MediaDevices/[[canExposeMicrophoneInfo]]}}.
@@ -3493,8 +3492,8 @@Let document be the [=relevant settings object=]'s - [=relevant global object=]'s [=associated `Document`=].
+Let document be the [=relevant global object=]'s + [=associated `Document`=].
If document is NOT @@ -3522,8 +3521,7 @@
The [=User Agent=] MUST wait to proceed to the next step until - the [=relevant settings object=]'s - [=relevant global object=]'s [=associated `Document`=] is + the [=relevant global object=]'s [=associated `Document`=] is [=Document/fully active=] and has focus.