Skip to content

Commit

Permalink
make constraints webidl optional in gUM call and add explanatory pros…
Browse files Browse the repository at this point in the history
…e (issue 366)
  • Loading branch information
Dan Burnett committed Aug 18, 2016
1 parent 582c808 commit 5b1fe0e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -3402,7 +3402,7 @@ <h3>MediaDevices Interface Extensions</h3>
<div>
<pre class="idl">partial interface MediaDevices {
MediaTrackSupportedConstraints getSupportedConstraints ();
Promise&lt;MediaStream&gt; getUserMedia (MediaStreamConstraints constraints);
Promise&lt;MediaStream&gt; getUserMedia (optional MediaStreamConstraints constraints);
};</pre>
<section>
<h2>Methods</h2>
Expand Down Expand Up @@ -3451,8 +3451,12 @@ <h2>Methods</h2>
value or a value of "true".</p>
</li>
<li>
<p>If <var>requestedMediaTypes</var> is the empty set, return
a promise rejected with a <code>TypeError</code>.</p>
<p>If <var>requestedMediaTypes</var> is the empty
set, return a promise rejected with
a <code>TypeError</code>. The word "optional"
occurs in the WebIDL due to WebIDL rules, but the
argument MUST be supplied in order for the call to
succeed.</p>
</li>
<li>
<p>If the current [[!HTML51]] Document's <a>user media
Expand Down

0 comments on commit 5b1fe0e

Please sign in to comment.