Re: [mediacapture-screen-share] A CaptureController object for getDisplayMedia() (#230)

> ```js
> const stream = await navigator.mediaDevices.getDisplayMedia({controller});
> ```
> Would this be getDisplayMedia({video: ..., controller: controller})?

Yes, both [work](https://jsfiddle.net/jib1/q75yb8pf/) since [video defaults to true](https://w3c.github.io/mediacapture-screen-share/#displaymediastreamoptions). We're missing a WPT test for that though...

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


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

Received on Friday, 2 September 2022 00:28:11 UTC