Skip to content

Commit

Permalink
Explicitly create MediaStream tracks in getDisplayMedia algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf committed Jan 11, 2024
1 parent 8a068bb commit 72f792b
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ <h2><dfn>MediaDevices</dfn> Additions</h2>


<ol>
<li>
<p>Let <var>mediaDevices</var> be [=this=].</p>
</li>


<li>
<p>Let <var>controller</var> be
<var>options</var>.<code>controller</code> if present, or
Expand Down Expand Up @@ -468,8 +473,25 @@ <h2><dfn>MediaDevices</dfn> Additions</h2>


<li>
<p>Let <var>stream</var> be the {{MediaStream}} object for
which the user granted permission.</p>
<p>Let <var>stream</var> be a {{MediaStream}} object.</p>
</li>

<li>
<p>For each <var>source</var> that the user granted permission
to, run the following steps:</p>
<ol>
<li>
<p>Let <var>track</var> be the result of [=create a
MediaStreamTrack|creating a MediaStreamTrack=]
with <var>source</var> and <var>mediaDevices</var>.</p>
</li>
<li>
<p>Add <var>track</var> to <var>stream</var> track's set.</p>
</li>
<li>
<p>[=Tie track source to MediaDevices=] with <var>source</var> and <var>mediaDevices</var>.</p>
</li>
</ol>
</li>


Expand Down

0 comments on commit 72f792b

Please sign in to comment.