Re: [mediacapture-screen-share] Conditional Focus (When Display-Capture Starts) (#190)

How about this:
```js
const stream = await navigator.mediaDevices.getDisplayMedia({video: true});
navigator.mediaDevices.addEventListener("focus", e => decide(stream) || e.preventDefault(), {once: true});
```

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


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

Received on Friday, 1 October 2021 14:14:52 UTC