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

This use case is a good example of where the browsers' auto focus behavior is undesirable. Fortunately, the spec has a fix for this, but it's not broadly implemented yet. It'd be something like:
```js
button.onclick = async () => await Promise.all([0,1,2].map(async () => {
  const controller = new CaptureController;
  controller.setFocusBehavior("focus-capturing-application");
  videos[i++].srcObject = await navigator.mediaDevices.getDisplayMedia({video: true, controller});
}));
```
 


-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2900#issuecomment-1718280531 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:33:59 UTC