|
108 | 108 | <pre class="idl"
|
109 | 109 | >partial interface MediaDevices {
|
110 | 110 | Promise<MediaStream> getViewportMedia(
|
111 |
| - optional DisplayMediaStreamConstraints constraints = {}); |
| 111 | + optional DisplayMediaStreamOptions options = {}); |
112 | 112 | };</pre>
|
113 | 113 | <dl data-link-for="MediaDevices" data-dfn-for="MediaDevices" class="methods">
|
114 | 114 | <dt>
|
|
117 | 117 | <dd>
|
118 | 118 | <p>Prompts the user for permission to live-capture the viewport (current tab).</p>
|
119 | 119 | <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 |
121 | 121 | media after permission has been granted.
|
122 | 122 | </p>
|
123 | 123 | <p>
|
@@ -164,17 +164,17 @@ <h2>
|
164 | 164 | attribute has the value {{InvalidStateError}}.</p>
|
165 | 165 | </li>
|
166 | 166 | <li>
|
167 |
| - <p>Let <var>constraints</var> be the method's first |
| 167 | + <p>Let <var>options</var> be the method's first |
168 | 168 | argument.</p>
|
169 | 169 | </li>
|
170 | 170 | <li>
|
171 |
| - <p>If <code>constraints.video</code> is <code>false</code>, |
| 171 | + <p>If <code>options.video</code> is <code>false</code>, |
172 | 172 | return a promise [=reject|rejected=] with a newly
|
173 | 173 | [=exception/created=] {{TypeError}}.</p>
|
174 | 174 | </li>
|
175 | 175 | <li>
|
176 | 176 | <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 |
178 | 178 | a dictionary, run the following steps:</p>
|
179 | 179 | <ol>
|
180 | 180 | <li>
|
|
211 | 211 | </li>
|
212 | 212 | <li>
|
213 | 213 | <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 |
215 | 215 | value or a value of <code>true</code>.</p>
|
216 | 216 | </li>
|
217 | 217 | <li>
|
|
0 commit comments