Skip to content

Commit 1446550

Browse files
beaufortfrancoispull[bot]
authored andcommitted
Change default value of video to true for getDisplayMedia calls
This CL makes sure the default value of video MediaStreamConstraints is false when called by getUserMedia() and true when called by getDisplayMedia() and getDisplayMediaSet(). Spec: https://www.w3.org/TR/screen-capture/#ref-for-dom-displaymediastreamoptions-video-1 Bug: 904831 Change-Id: I28d7f3c7ffb7078108881c99361a6f4849f31081 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3945509 Commit-Queue: Fr <[email protected]> Reviewed-by: Elad Alon <[email protected]> Cr-Commit-Position: refs/heads/main@{#1058592}
1 parent dc2709f commit 1446550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

screen-capture/getdisplaymedia.https.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
{video: true},
6060
{video: true, audio: false},
6161
{audio: false},
62-
{audio: true},
6362
{},
6463
undefined
6564
].forEach(constraints => promise_test(async t => {
@@ -93,6 +92,7 @@
9392

9493
[
9594
{video: true, audio: true},
95+
{audio: true},
9696
].forEach(constraints => promise_test(async t => {
9797
const stream = await getDisplayMedia(constraints);
9898
t.add_cleanup(() => stopTracks(stream));

0 commit comments

Comments
 (0)