- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Fri, 02 Nov 2018 16:04:29 +0000
- To: public-webrtc-logs@w3.org
> The biggest issue is the recommendation to use window.devicePixelRatio as a scaling factor. Thanks, I'll add a PR to attempt to resolve this. PTAL. > I would also like to see a way to expose the source pixel ratio of the captured content. The current workaround for this would be: ```js const [track] = (await navigator.mediaDevices.getDisplayMedia()).getVideoTracks(); const pixelRatio = track.getCapabilities().max.height / track.getSettings().height; await track.applyConstraints(myConstraints); ``` I'd recommend opening a new issue if you think this requires its own constraint. -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/35#issuecomment-435429288 using your GitHub account
Received on Friday, 2 November 2018 16:04:31 UTC