Skip to content

Commit

Permalink
Define fitness distance for constraints not supported by a device.
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Jan 14, 2021
1 parent aa0eae1 commit 098d6d0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions getusermedia.html
Expand Up @@ -1107,7 +1107,11 @@ <h2>Methods</h2>
<li>
<a>settings dictionary</a> refers to a possible
instance of the {{MediaTrackSettings}}
dictionary.
dictionary. The User Agent MUST NOT include inherent
unchangeable device properties as members unless
they are in the <a>list of inherent constrainable
track properties</a> (to avoid a "broken clock being
right twice a day" problem).
</li>
</ul>
</li>
Expand Down Expand Up @@ -4234,15 +4238,24 @@ <h2>Methods</h2>
either contains one or more members named 'min', 'max', or
'exact', or is itself a bare value and bare values are to be
treated as 'exact'), and the <a>settings dictionary</a>'s
value for the constraint does not satisfy the constraint, the
fitness distance is positive infinity.</p>
<var>constraintName</var> member does not [= map/exist =], or
its value does not satisfy the constraint, the fitness
distance is positive infinity.</p>
</li>
<li>
<p>If the constraint is
<a data-lt="required">not required</a>, and does not apply for
this type of device, the fitness distance is 0 (that is, the
this type of object, the fitness distance is 0 (that is, the
constraint does not influence the fitness distance).</p>
</li>
<li>
<p>If the constraint is
<a data-lt="required">not required</a>, applies for this type
of object (but not necessarily this specific instance), and
the <a>settings dictionary</a>'s <var>constraintName</var>
member does [= map/exist | not exist=], the fitness distance
is 1.</p>
</li>
<li>If no ideal value is specified (<var>constraintValue</var>
either contains no member named 'ideal', or, if bare values are
to be treated as 'ideal', isn't a bare value), the fitness
Expand Down

0 comments on commit 098d6d0

Please sign in to comment.