Skip to content

Commit

Permalink
Reorder steps to not set privacy indicator on device that fails to open.
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Oct 6, 2020
1 parent ea45c6a commit 3259bc1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -3643,16 +3643,7 @@ <h2>Methods</h2>
</li>
<li>
<p>The result of the request is {{PermissionState/"granted"}}.
Using the granted device's deviceId, <var>deviceId</var>, set
<a>[[\devicesLiveMap]]</a>[<var>deviceId</var>] to
<code>true</code>, if it isn’t already <code>true</code>,
and set the
<a>[[\devicesAccessibleMap]]</a>[<var>deviceId</var>] to
<code>true</code>, if it isn’t already
<code>true</code>.</p>
</li>
<li>
<p>If a hardware error such as an OS/program/webpage lock prevents access,
If a hardware error such as an OS/program/webpage lock prevents access,
remove <var>track</var> from <var>finalSet</var>.
If <var>finalSet</var> has no track of type <var>kind</var>,
<a>reject</a> <var>p</var> with a new
Expand All @@ -3668,6 +3659,15 @@ <h2>Methods</h2>
value {{"AbortError"}} and abort these steps.
Otherwise, restart these sub steps with the updated <var>finalSet</var>.</p>
</li>
<li>
<p>Using the granted device's deviceId, <var>deviceId</var>, set
<a>[[\devicesLiveMap]]</a>[<var>deviceId</var>] to
<code>true</code>, if it isn’t already <code>true</code>,
and set the
<a>[[\devicesAccessibleMap]]</a>[<var>deviceId</var>] to
<code>true</code>, if it isn’t already
<code>true</code>.</p>
</li>
<li>
<p>Add <var>track</var> to <var>stream</var>'s track set.</p>
</li>
Expand Down

0 comments on commit 3259bc1

Please sign in to comment.