Skip to content

Commit

Permalink
Merge pull request #542 from henbos/181003_NonApplicableConstraints
Browse files Browse the repository at this point in the history
Clarify what happens to non-applicable constraints.
  • Loading branch information
henbos committed Oct 4, 2018
2 parents 9c86615 + 61524cd commit 57d4a93
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -3535,11 +3535,22 @@ <h2>Methods</h2>
<code><a>name</a></code> attribute has the value
<code>NotFoundError</code> and abort these steps.</p>
</li>
<li>If the value of the <var>T</var> entry of
<var>constraints</var> is "true", set CS to the empty
constraint set (no constraint). Otherwise, continue
with <var>CS</var> set to the value of the <var>T</var>
entry of <var>constraints</var>.</li>
<li>
If the value of the <var>T</var> entry of
<var>constraints</var> is "true", set <var>CS</var> to
the empty constraint set (no constraint). Otherwise,
continue with <var>CS</var> set to the value of the
<var>T</var> entry of <var>constraints</var>.
</li>
<li>
Remove any constrainable property inside of
<var>CS</var> that are not defined for
<code><a>MediaStreamTrack</a></code> objects of type
<var>T</var>. This means that audio-only constraints
inside of "video" and video-only constraints inside of
"audio" are simply ignored rather than causing
<code>OverconstrainedError</code>.
</li>
<li>
<p>Run the <a>SelectSettings</a>
algorithm on each track in <var>CandidateSet</var>
Expand Down

0 comments on commit 57d4a93

Please sign in to comment.