Skip to content

Commit 31018cb

Browse files
Closure Teamcopybara-github
authored andcommitted
Add screen capture extensions to constraints and settings
PiperOrigin-RevId: 565112508
1 parent d4da7b3 commit 31018cb

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

externs/browser/w3c_rtc.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ MediaSettingsRange.prototype.step;
7777
* @interface
7878
* @see https://www.w3.org/TR/mediacapture-streams/#idl-def-MediaTrackCapabilities
7979
* @see https://w3c.github.io/mediacapture-image/#mediatrackcapabilities-section
80+
* @see https://www.w3.org/TR/screen-capture
8081
*/
8182
function MediaTrackCapabilities() {}
8283

@@ -158,8 +159,18 @@ MediaTrackCapabilities.prototype.zoom
158159
/** @type {boolean} */
159160
MediaTrackCapabilities.prototype.torch
160161

162+
/** @type {string|undefined} */
163+
MediaTrackCapabilities.prototype.displaySurface;
164+
165+
/** @type {boolean|undefined} */
166+
MediaTrackCapabilities.prototype.logicalSurface;
167+
168+
/** @type {Array<string>} */
169+
MediaTrackCapabilities.prototype.cursor;
170+
161171
/**
162172
* @interface
173+
* @see https://www.w3.org/TR/screen-capture
163174
* @see https://www.w3.org/TR/screen-capture/#extensions-to-mediatracksettings
164175
* @see https://www.w3.org/TR/mediacapture-streams/#media-track-settings
165176
* @see https://w3c.github.io/mediacapture-image/#mediatracksettings-section
@@ -187,6 +198,18 @@ MediaTrackSettings.prototype.resizeMode;
187198
/** @type {string|undefined} */
188199
MediaTrackSettings.prototype.displaySurface;
189200

201+
/** @type {boolean|undefined} */
202+
MediaTrackSettings.prototype.logicalSurface;
203+
204+
/** @type {string|undefined} */
205+
MediaTrackSettings.prototype.cursor;
206+
207+
/** @type {boolean|undefined} */
208+
MediaTrackSettings.prototype.restrictOwnAudio;
209+
210+
/** @type {boolean|undefined} */
211+
MediaTrackSettings.prototype.suppressLocalAudioPlayback;
212+
190213
/** @type {number} */
191214
MediaTrackSettings.prototype.volume;
192215

@@ -260,6 +283,8 @@ MediaTrackSettings.prototype.torch
260283
/**
261284
* @interface
262285
* @see https://w3c.github.io/mediacapture-main/#media-track-supported-constraints
286+
* @see https://w3c.github.io/mediacapture-screen-share/#extensions-to-mediatracksupportedconstraints
287+
* @see https://www.w3.org/TR/screen-capture
263288
*/
264289
function MediaTrackSupportedConstraints() {}
265290

@@ -311,6 +336,20 @@ MediaTrackSupportedConstraints.prototype.deviceId;
311336
/** @type {boolean|undefined} */
312337
MediaTrackSupportedConstraints.prototype.groupId;
313338

339+
/** @type {boolean|undefined} */
340+
MediaTrackSupportedConstraints.prototype.displaySurface;
341+
342+
/** @type {boolean|undefined} */
343+
MediaTrackSupportedConstraints.prototype.logicalSurface;
344+
345+
/** @type {boolean|undefined} */
346+
MediaTrackSupportedConstraints.prototype.cursor;
347+
348+
/** @type {boolean|undefined} */
349+
MediaTrackSupportedConstraints.prototype.restrictOwnAudio;
350+
351+
/** @type {boolean|undefined} */
352+
MediaTrackSupportedConstraints.prototype.suppressLocalAudioPlayback;
314353

315354
/**
316355
* @constructor
@@ -1179,6 +1218,8 @@ var ConstrainLong;
11791218

11801219
/**
11811220
* @see https://w3c.github.io/mediacapture-main/getusermedia.html#dom-mediatrackconstraintset
1221+
* @see https://w3c.github.io/mediacapture-screen-share/#extensions-to-mediatrackconstraintset
1222+
* @see https://www.w3.org/TR/screen-capture
11821223
* @record
11831224
*/
11841225
function MediaTrackConstraintSet() {}
@@ -1263,6 +1304,20 @@ MediaTrackConstraintSet.prototype.volume;
12631304
*/
12641305
MediaTrackConstraintSet.prototype.width;
12651306

1307+
/** @type {ConstrainDOMString|undefined} */
1308+
MediaTrackConstraintSet.prototype.displaySurface;
1309+
1310+
/** @type {ConstrainBoolean|undefined} */
1311+
MediaTrackConstraintSet.prototype.logicalSurface;
1312+
1313+
/** @type {ConstrainDOMString|undefined} */
1314+
MediaTrackConstraintSet.prototype.cursor;
1315+
1316+
/** @type {ConstrainBoolean|undefined} */
1317+
MediaTrackConstraintSet.prototype.restrictOwnAudio;
1318+
1319+
/** @type {ConstrainBoolean|undefined} */
1320+
MediaTrackConstraintSet.prototype.suppressLocalAudioPlayback;
12661321

12671322
/**
12681323
* @record

0 commit comments

Comments
 (0)