Skip to content

Commit

Permalink
Merge pull request #745 from jan-ivar/revoke
Browse files Browse the repository at this point in the history
Add permission revocation algorithm
  • Loading branch information
alvestrand committed Nov 12, 2020
2 parents d213d95 + f2cf6e4 commit 5df2e3f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,33 @@ <h4>Life-cycle</h4>
</ol>
<p>If the end of the track was reached due to a user request, the event
source for this event is the user interaction event source.</p>
<p>To invoke the <dfn>device permission revocation algorithm</dfn> with
{{PermissionName}} <var>permissionName</var> and
{{DevicePermissionDescriptor/deviceId}} <var>deviceId</var>, run the
following steps:</p>
<ol>
<li>
<p>Let <var>tracks</var> be the set of all currently
{{MediaStreamTrackState/"live"}} <code>MediaStreamTrack</code>s
that fit the following criteria:</p>
<ul>
<li>
If <var>deviceId</var> is not <code>undefined</code>, tracks
whose associated <a>deviceId</a> matches <var>deviceId</var>
</li>
<li>
If <var>deviceId</var> is <code>undefined</code>, tracks whose
permission associated with this kind of track (e.g.
{{PermissionName/"camera"}}, {{PermissionName/"microphone"}})
matches <var>permissionName</var>
</li>
</ul>
</li>
<li>
<p>For each <var>track</var> in <var>tracks</var>,
<a href="#ends-nostop">end</a> the track.</p>
</li>
</ol>
<h4>Media Flow</h4>
<p>There are two dimensions related to the media flow for a
{{MediaStreamTrackState/"live"}} {{MediaStreamTrack}} : muted / not
Expand Down

0 comments on commit 5df2e3f

Please sign in to comment.