Skip to content

Commit 0c1fff3

Browse files
author
Guido Urdaneta
committed
Add pixelRatio.
1 parent a7ca34a commit 0c1fff3

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

index.html

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ <h2>Terminology</h2>
150150
<p>The <dfn class="export">source pixel ratio</dfn> of a <a>display
151151
surface</a> is 1/96th of 1 inch divided by its vertical pixel size.</p>
152152

153-
154153
<p>The <dfn class="event">devicechange</dfn> event is defined in
155154
[[GETUSERMEDIA]].</p>
156155
</section>
@@ -879,6 +878,21 @@ <h2 id="constrainable-properties">Constrainable Properties for Captured
879878
{{CursorCaptureConstraint}} it is capable of supporting for this
880879
[=display surface=].</td>
881880
</tr>
881+
882+
<tr id="def-constraint-pixel-ratio">
883+
<td><dfn class="export">pixelRatio</dfn>
884+
</td>
885+
886+
<td>{{double}}</td>
887+
888+
<td>As a setting, indicates the pixel ratio of the [=display surface=].
889+
For [= display surface/browser =] surfaces, it is equivalent to the
890+
surface's {{Window/devicePixelRatio}}. For [= display surface/window =]
891+
and [= display surface/monitor =]surfaces, it is equivalent to the
892+
[=display surface=]'s scale factor.
893+
It cannot be used as a constraint or capability.
894+
</td>
895+
</tr>
882896
</tbody>
883897
</table>
884898

@@ -1872,6 +1886,7 @@ <h2>Extensions to {{MediaTrackSettings}}</h2>
18721886
DOMString cursor;
18731887
boolean restrictOwnAudio;
18741888
boolean suppressLocalAudioPlayback;
1889+
double pixelRatio;
18751890
};</pre>
18761891

18771892
<dl data-link-for="MediaTrackSettings" data-dfn-for=
@@ -1924,6 +1939,14 @@ <h2>Extensions to {{MediaTrackSettings}}</h2>
19241939
agent to apply [=local audio playback suppression=] to the
19251940
source.</p>
19261941
</dd>
1942+
1943+
1944+
<dt><dfn>pixelRatio</dfn> of type {{double}}</dt>
1945+
1946+
1947+
<dd>
1948+
<p>The pixel ratio of of the [=display surface=] being captured.</p>
1949+
</dd>
19271950
</dl>
19281951
</section>
19291952

screenshare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var respecConfig = {
5959

6060
// name of the WG
6161
group: "webrtc",
62-
xref: ["html", "infra", "permissions", "permissions-policy", "dom", "mediacapture-streams", "webidl"],
62+
xref: ["html", "infra", "permissions", "permissions-policy", "dom", "mediacapture-streams", "webidl", "cssom-view"],
6363
// name (without the @w3.org) of the public mailing to which comments are due
6464
wgPublicList: "public-webrtc",
6565

0 commit comments

Comments
 (0)