Skip to content

Commit 98ffdb4

Browse files
committed
1 parent 71f3030 commit 98ffdb4

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

getusermedia.html

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,14 @@ <h4>Life-cycle</h4>
860860
<a href="#dom-mediastreamtrack-kind">kind</a>
861861
</code> and <code>
862862
<a href="#dom-mediastreamtrack-label">label</a>
863-
</code> MUST not change values when the source is detached.</p>
863+
</code> <em class="rfc2119">must not</em> change values
864+
when the source is detached, unless this was the last
865+
attached source.</p>
866+
867+
<p>When all <code><a>MediaStreamTrack</a></code> instances have
868+
been detached from their sources, their <code>
869+
<a href="#dom-mediastreamtrack-label">label</a></code>
870+
<em class="rfc2119">must</em> be set to the empty string.</p>
864871

865872
<p>When a <code>
866873
<a>MediaStreamTrack</a>
@@ -3093,7 +3100,7 @@ <h2>NavigatorUserMediaErrorCallback</h2>
30933100
</dl>
30943101
</section>
30953102

3096-
<section class="informative">
3103+
<section>
30973104
<h2>Implementation Suggestions</h2>
30983105

30993106
<div class="practice">
@@ -3138,6 +3145,24 @@ <h2>Implementation Suggestions</h2>
31383145
removed.</p>
31393146
</div>
31403147

3148+
<div class="practice">
3149+
<span id="stored-permissions" class="practicelab">Stored
3150+
Permissions</span>
3151+
<p class="practicedesc">When permission is requested for a
3152+
device, the UA may choose to store that permission, if granted, for later
3153+
use by the same origin, so that the user does not need to
3154+
grant permission again at a later time. Such storing
3155+
<em class="rfc2119">must</em>
3156+
only be done when the page is secure (served over HTTPS and
3157+
having no mixed content). It is an UA choice whether it
3158+
offers functionality to store permission to each device
3159+
separately, all devices of a given class, or all devices; the
3160+
choice needs to be apparent to the user.</p>
3161+
<p class="practicedesc">When permission is not stored,
3162+
permission should last only until such time as all
3163+
MediaStreamTracks sourced from that device have been stopped.</p>
3164+
</div>
3165+
31413166
<div class="practice">
31423167
<span class="practicelab" id="handling-devices">Handling multiple
31433168
devices</span>

0 commit comments

Comments
 (0)