Re: [w3ctag/design-reviews] Physical and logical resolution for screen-capture MediaStreamTracks (Issue #1060)

christianliebel left a comment (w3ctag/design-reviews#1060)

@guidou, thank you for your response and the clarification.

>  The WG decided that the ratio we want to report should include the effects of OS zoom, but not include the effect of page zoom; therefore, its definition would be different from `window.devicePixelRatio`'s.

This wasn't evident to us, as your issue description states ”the logical resolution is the physical resolution divided by any scaling factor applied by the underlying operating system **and/or the UA via page zoom**“ and the explainer doesn’t explicitly convey this. Introducing `screenPixelRatio` seems fine for us in that case, but we suggest making the difference apparent in the specification text and the developer documentation.

> MediaStreamTrack has an event called [configurationchange](https://w3c.github.io/mediacapture-extensions/#dom-mediastreamtrack-onconfigurationchange) to handle configuration changes, which include changes to settings such as the proposed one. The latest version of the explainer includes an example where this event is used to update the sent resolution when screenPixelRatio changes.

This seems fine.

That being said, we are closing this design review as **satisfied**.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1060#issuecomment-2901079567
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1060/2901079567@github.com>

Received on Thursday, 22 May 2025 12:39:27 UTC