Skip to content

Commit 904f511

Browse files
authored
Merge pull request #26 from eladalon1983/ediotrial1
s/...Constraints/...Options
2 parents b3be9e3 + 6bfbe15 commit 904f511

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ <h2>
108108
<pre class="idl"
109109
>partial interface MediaDevices {
110110
Promise&lt;MediaStream&gt; getViewportMedia(
111-
optional DisplayMediaStreamConstraints constraints = {});
111+
optional DisplayMediaStreamOptions options = {});
112112
};</pre>
113113
<dl data-link-for="MediaDevices" data-dfn-for="MediaDevices" class="methods">
114114
<dt>
@@ -117,7 +117,7 @@ <h2>
117117
<dd>
118118
<p>Prompts the user for permission to live-capture the viewport (current tab).</p>
119119
<p>
120-
The user agent MUST apply any provided <var>constraints</var> to the produced
120+
The user agent MUST apply any provided <var>options</var> to the produced
121121
media after permission has been granted.
122122
</p>
123123
<p>
@@ -164,17 +164,17 @@ <h2>
164164
attribute has the value {{InvalidStateError}}.</p>
165165
</li>
166166
<li>
167-
<p>Let <var>constraints</var> be the method's first
167+
<p>Let <var>options</var> be the method's first
168168
argument.</p>
169169
</li>
170170
<li>
171-
<p>If <code>constraints.video</code> is <code>false</code>,
171+
<p>If <code>options.video</code> is <code>false</code>,
172172
return a promise [=reject|rejected=] with a newly
173173
[=exception/created=] {{TypeError}}.</p>
174174
</li>
175175
<li>
176176
<p>For each [= map/exist | existing =] member
177-
in <var>constraints</var> whose value, <var>CS</var>, is
177+
in <var>options</var> whose value, <var>CS</var>, is
178178
a dictionary, run the following steps:</p>
179179
<ol>
180180
<li>
@@ -211,7 +211,7 @@ <h2>
211211
</li>
212212
<li>
213213
<p>Let <var>requestedMediaTypes</var> be the set of media
214-
types in <var>constraints</var> with either a dictionary
214+
types in <var>options</var> with either a dictionary
215215
value or a value of <code>true</code>.</p>
216216
</li>
217217
<li>

0 commit comments

Comments
 (0)