Re: [webrtc-pc] Can I share some Windows? (#2900)

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.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2900#issuecomment-1718273765 using your GitHub account


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

Received on Wednesday, 13 September 2023 20:28:17 UTC