w3c / mediacapture-screen-share-extensions

Other
1 stars 0 forks source link

Want to restrict the options of the getDisplayMedia API #1

Open Nitesh2503 opened 7 months ago

Nitesh2503 commented 7 months ago

Problem Description :

When the getDisplayMedia API opens the modal to select the tab/window/entire screen for capture, I only want to display the tabs for selection and remove the options for capturing the entire window.

Currently, there is no option to remove the window's option; only the entire screen option can be eliminated. How can I remove the window's option?

Is there any way to achieve the asked functionality ?

Way to check :

Run the getDisplayMedia API and see the options shown on the modal

Chrome version: latest

OS:Mac OS

fippo commented 7 months ago

This seems like a Chrome question and was indeed copy-pasted to (or from) https://bugs.chromium.org/p/chromium/issues/detail?id=1517580

@dontcallmedom we surely have the same rules as the netiquette from the 90s regarding this?

beaufortfrancois commented 7 months ago

FWIW I was telling @eladalon1983 the other day I needed something similar which I called "windowTypeSurfaces" similar to "monitorTypeSurfaces" that I'd use to tell the browser I wish to exclude windows in the getDisplayMedia() picker.

eladalon1983 commented 7 months ago

copy-pasted to (or from)

I love the soundness of the logic employed here, @fippo. :-)

This seems like a Chrome question

While the question is phrased in terms of Chrome's UX, I think it's straightforward to generalize it to a spec question - OP wants to limit getDisplayMedia() and only offer users the option to share tabs. (As @beaufortfrancois has noted above.)

robinma commented 5 days ago

I hope not show selected popbox