Re: [mediacapture-screen-share] Can I share some Windows? (#280)

> This already seems possible. E.g. [this](https://jsfiddle.net/jib1/tap60wcf/):
> 
> ```js
> button.onclick = async () => await Promise.all([0,1,2].map(async () => {
>   videos[i++].srcObject = await navigator.mediaDevices.getDisplayMedia({video: true});
> }));
> ```
> 
> ...works in all browsers and should prompt the user 3 times for different apps to share and then share them simultaneously.
> 
> Since all three calls to getDisplayMedia are invoked at once (on the same task), any browser vendor interested in experimenting with presenting the user with an optimized picker for this situation should be able to.

s it feasible to write this way now? I can share three applications directly at the same time

-- 
GitHub Notification of comment by trookie2000
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/280#issuecomment-1725893710 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 19 September 2023 15:28:59 UTC