New issue
Advanced search Search tips

Issue 904831 link

Starred by 5 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Make constraints processing for screen capture spec compliant

Project Member Reported by guidou@chromium.org, Nov 13

Issue description

The existing constraints processing for screen capture, while following the mediaccapture-main spec in terms of how the constrainable pattern should be implemented, is written for the nonstandard extension API in Chrome.

Now that we are going to support the standard getDisplayMedia(), we should update the algorithm (or introduce a new one) so that it follows any variations specified in the mediacapture-screen-share spec.
 
Cc: hbos@chromium.org
Cc: marinaciocea@chromium.org ar...@chromium.org
When I provide constraints object for navigator.mediaDevices.getDisplayMedia() like this:

{
  displaySurface: ["application", "browser"]
}

the browser (Chrome 73.0.3667.0 64-bit on OS X 10.13.6) shows selection with every type of source (e.g. screen, apps, browser tabs).

Previously we used extension with chrome.desktopCapture.chooseDesktopMedia() call and it showed only requested variants.

Sign in to add a comment