Skip to content

Commit

Permalink
Add muted/readyState checks and fingerprint notes
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf committed May 19, 2022
1 parent ffd3496 commit e7e4adb
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions index.html
Expand Up @@ -460,18 +460,27 @@ <h2>Exposing change of MediaStreamTrack configuration</h2>
};</pre>
<p>
<p>When the [=User Agent=] detects <dfn data-export id="change-track-configuration">a change of configuration</dfn>
in a <var>track</var>'s underlying source, the [=User Agent=] MUST queue a task that runs the following steps:</p>
in a <var>track</var>'s underlying source, the [=User Agent=] MUST run the following steps:</p>
<ol>
<li><p>If <var>track</var>.{{MediaStreamTrack/muted}} is <code>true</code>, wait for <var>track</var>.{{MediaStreamTrack/muted}}
to become <code>false</code> or <var>track</var>.{{MediaStreamTrack/readyState}} to be "ended".</p></li>
<li><p>If <var>track</var>.{{MediaStreamTrack/readyState}} is "ended", abort these steps.</p></li>
<li><p>If <var>track</var>'s capabilities, constraints and settings are matching <var>source</var> configuration, abort these steps.
<li>
<!-- FIXME: Export capabilities, constraints and settings so that we can use them here. -->
<p>Update <var>track</var>'s capabilities, constraints and settings
according <var>track</var>'s underlying source.</p>
<p>Update <var>track</var>'s capabilities, constraints and settings according <var>track</var>'s underlying source.</p>
</li>
<li>
<p>[=Fire an event=] named <var>configurationchanged</var> on <var>track</var>.</p>
<p>[=Fire an event=] named <var>configurationchange</var> on <var>track</var>.</p>
</li>
</ol>
</p>
<p>
<div class="note">
<p class="fingerprint">These events are potentially triggered simultaneously on documents of different origins.
[=User Agents=] MAY add fuzzing on the timing of events to avoid cross-origin activity correlation.</p>
</div>
</p>
</div>
</section>
</body>
Expand Down

0 comments on commit e7e4adb

Please sign in to comment.