Skip to content

Commit

Permalink
using a third dictionary to describe getSupportedConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Mar 17, 2015
1 parent d43b6bd commit bb393df
Showing 1 changed file with 60 additions and 4 deletions.
64 changes: 60 additions & 4 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,62 @@ <h2>Track Source Types</h2>
</dl>
</section>

<section id="media-track-supported-constraints">
<h2>MediaTrackSupportedConstraints</h2>

<p><code><a>MediaTrackSupportedConstraints</a></code> represents the
list of constraints recognized by a User Agent for controlling the
<a>Capabilities</a> of a <code><a>MediaStreamTrack</a></code> object.
</p>

<dl class="idl" title="dictionary MediaTrackSupportedConstraints">
<dt>boolean width = true</dt>

<dd />

<dt>boolean height = true</dt>

<dd />

<dt>boolean aspectRatio = true</dt>

<dd />

<dt>boolean frameRate = true</dt>

<dd />

<dt>boolean facingMode = true</dt>

<dd />

<dt>boolean volume = true</dt>

<dd />

<dt>boolean sampleRate = true</dt>

<dd />

<dt>boolean sampleSize = true</dt>

<dd />

<dt>boolean echoCancellation = true</dt>

<dd />

<dt>boolean deviceId = true</dt>

<dd />

<dt>boolean groupId = true</dt>

<dd />
</dl>

</section>

<section id="media-track-capabilities">
<h2>MediaTrackCapabilities</h2>

Expand Down Expand Up @@ -3019,15 +3075,15 @@ <h3>MediaDevices Interface Extensions</h3>
recognizes.</p>

<dl class="idl" title="partial interface MediaDevices">
<dt>Dictionary getSupportedConstraints(DOMString kind)</dt>
<dt>MediaTrackSupportedConstraints getSupportedConstraints(DOMString kind)</dt>

<dd>
<p>Returns a dictionary whose members are the constrainable properties
<p>Returns an object whose properties are the constrainable properties

This comment has been minimized.

Copy link
@jan-ivar

jan-ivar Mar 17, 2015

This is a dictionary. We use dictionary and member elsewhere, so why are we reverting to object and property here?

This comment has been minimized.

Copy link
@dontcallmedom

dontcallmedom Mar 17, 2015

Author Owner

I've reverted that change

known to the User Agent for the kind given as argument. A
supported constrainable property MUST be represented by a member whose name is
supported constrainable property MUST be represented by a property whose name is
the constraint name and whose value is <code>true</code>. Any
constrainable properties not supported by the User Agent MUST not be
present in the returned dictionary.</p>
present in the returned object.</p>
</dd>

<dt>Promise&lt;MediaStream&gt; getUserMedia(
Expand Down

0 comments on commit bb393df

Please sign in to comment.