feedbackplus icon indicating copy to clipboard operation
feedbackplus copied to clipboard

A difference in the tab sharing permission screen

Open IvayloHrTonev opened this issue 2 years ago • 1 comments

Hi @ColonelParrot! Congrats for your work!

There is a difference in the tab sharing permission screen. Under Chromium, the browser gives the option to choose between the current tab, other tabs, windows or full screen, while under Chrome only the current tab is displayed. I guess this behavior can be fixed with parameters to getMedia

For example this code will fix the problem under Chrome navigator.mediaDevices.getDisplayMedia({ video: { displaySurface: "browser"} })

So I suggest that the library allows, for example via a second constructor or some other way, to pass parameters to the navigator.mediaDevices.getDisplayMedia.

Please see the screenshots.

Chromium - version Version 112.0.5615.49 (Official Build) Screenshot from 2023-09-25 13-18-29

Google Chrome - Version 117.0.5938.92 (Official Build) (64-bit) Screenshot from 2023-09-25 13-18-03

IvayloHrTonev avatar Sep 25 '23 12:09 IvayloHrTonev