@@ -1279,6 +1279,64 @@ MediaStreamConstraints.prototype.video;
1279
1279
*/
1280
1280
MediaStreamConstraints . prototype . preferCurrentTab ;
1281
1281
1282
+ /**
1283
+ * @constructor
1284
+ * @see https://w3c.github.io/mediacapture-screen-share/#dom-capturecontroller
1285
+ */
1286
+ function CaptureController ( ) { }
1287
+
1288
+ /**
1289
+ * @param {string } focusBehavior
1290
+ * @return {undefined }
1291
+ * @see https://w3c.github.io/mediacapture-screen-share/#dom-capturestartfocusbehavior
1292
+ */
1293
+ CaptureController . prototype . setFocusBehavior = function ( focusBehavior ) { } ;
1294
+
1295
+ /**
1296
+ * @see https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamoptions
1297
+ * @record
1298
+ */
1299
+ function DisplayMediaStreamOptions ( ) { }
1300
+
1301
+ /**
1302
+ * @type {boolean|MediaTrackConstraints|undefined }
1303
+ */
1304
+ DisplayMediaStreamOptions . prototype . audio ;
1305
+
1306
+ /**
1307
+ * @type {boolean|MediaTrackConstraints|undefined }
1308
+ */
1309
+ DisplayMediaStreamOptions . prototype . video ;
1310
+
1311
+ /**
1312
+ * @type {!CaptureController|undefined }
1313
+ */
1314
+ DisplayMediaStreamOptions . prototype . controller ;
1315
+
1316
+ /**
1317
+ * @see https://w3c.github.io/mediacapture-screen-share/#dom-selfcapturepreferenceenum
1318
+ * @type {string|undefined }
1319
+ */
1320
+ DisplayMediaStreamOptions . prototype . selfBrowserSurface ;
1321
+
1322
+ /**
1323
+ * @see https://w3c.github.io/mediacapture-screen-share/#dom-systemaudiopreferenceenum
1324
+ * @type {string|undefined }
1325
+ */
1326
+ DisplayMediaStreamOptions . prototype . surfaceSwitching ;
1327
+
1328
+ /**
1329
+ * @see https://w3c.github.io/mediacapture-screen-share/#dom-surfaceswitchingpreferenceenum
1330
+ * @type {string|undefined }
1331
+ */
1332
+ DisplayMediaStreamOptions . prototype . systemAudio ;
1333
+
1334
+ /**
1335
+ * @see https://wicg.github.io/prefer-current-tab/
1336
+ * @type {boolean|undefined }
1337
+ */
1338
+ DisplayMediaStreamOptions . prototype . preferCurrentTab ;
1339
+
1282
1340
/**
1283
1341
* @see {http://dev.w3.org/2011/webrtc/editor/getusermedia.html#
1284
1342
* navigatorusermediaerror-and-navigatorusermediaerrorcallback}
@@ -1669,20 +1727,20 @@ MediaDevices.prototype.enumerateDevices = function() {};
1669
1727
* @param {!MediaStreamConstraints } constraints
1670
1728
* @return {!Promise<!MediaStream> }
1671
1729
*/
1672
- MediaDevices . prototype . getUserMedia = function ( constraints ) { }
1730
+ MediaDevices . prototype . getUserMedia = function ( constraints ) { } ;
1673
1731
1674
1732
/**
1675
1733
* @see https://w3c.github.io/mediacapture-screen-share/#dom-mediadevices-getdisplaymedia
1676
- * @param {!MediaStreamConstraints = } constraints
1734
+ * @param {!DisplayMediaStreamOptions = } options
1677
1735
* @return {!Promise<!MediaStream> }
1678
1736
*/
1679
- MediaDevices . prototype . getDisplayMedia = function ( constraints ) { }
1737
+ MediaDevices . prototype . getDisplayMedia = function ( options ) { } ;
1680
1738
1681
1739
/**
1682
1740
* @see https://w3c.github.io/mediacapture-main/#dom-mediadevices-getsupportedconstraints
1683
1741
* @return {!MediaTrackSupportedConstraints }
1684
1742
*/
1685
- MediaDevices . prototype . getSupportedConstraints = function ( ) { }
1743
+ MediaDevices . prototype . getSupportedConstraints = function ( ) { } ;
1686
1744
1687
1745
/** @const {!MediaDevices} */
1688
1746
Navigator . prototype . mediaDevices ;
0 commit comments