Skip to content

Commit

Permalink
define permission persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Aug 28, 2014
1 parent 71f3030 commit 98ffdb4
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,14 @@ <h4>Life-cycle</h4>
<a href="#dom-mediastreamtrack-kind">kind</a>
</code> and <code>
<a href="#dom-mediastreamtrack-label">label</a>
</code> MUST not change values when the source is detached.</p>
</code> <em class="rfc2119">must not</em> change values
when the source is detached, unless this was the last
attached source.</p>

<p>When all <code><a>MediaStreamTrack</a></code> instances have
been detached from their sources, their <code>
<a href="#dom-mediastreamtrack-label">label</a></code>
<em class="rfc2119">must</em> be set to the empty string.</p>

<p>When a <code>
<a>MediaStreamTrack</a>
Expand Down Expand Up @@ -3093,7 +3100,7 @@ <h2>NavigatorUserMediaErrorCallback</h2>
</dl>
</section>

<section class="informative">
<section>
<h2>Implementation Suggestions</h2>

<div class="practice">
Expand Down Expand Up @@ -3138,6 +3145,24 @@ <h2>Implementation Suggestions</h2>
removed.</p>
</div>

<div class="practice">
<span id="stored-permissions" class="practicelab">Stored
Permissions</span>
<p class="practicedesc">When permission is requested for a
device, the UA may choose to store that permission, if granted, for later
use by the same origin, so that the user does not need to
grant permission again at a later time. Such storing
<em class="rfc2119">must</em>
only be done when the page is secure (served over HTTPS and
having no mixed content). It is an UA choice whether it
offers functionality to store permission to each device
separately, all devices of a given class, or all devices; the
choice needs to be apparent to the user.</p>
<p class="practicedesc">When permission is not stored,
permission should last only until such time as all
MediaStreamTracks sourced from that device have been stopped.</p>
</div>

<div class="practice">
<span class="practicelab" id="handling-devices">Handling multiple
devices</span>
Expand Down

0 comments on commit 98ffdb4

Please sign in to comment.