Skip to content

Commit 1616e6f

Browse files
committed
Add support for window-capture
1 parent e0d6b63 commit 1616e6f

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

identity/index.html

+19-7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ <h2>Abstract</h2>
1313
This document proposes a mechanism by which an application <var>APP</var> can opt-in to
1414
exposing certain information with another application <var>CAPTR</var>, if
1515
<var>CAPTR</var> is screen-capturing the tab in which <var>APP</var> is running. It
16-
describes a mechanism for <a data-cite="SCREEN-CAPTURE#dfn-browser">tab capture</a> only.
16+
describes a mechanism for <a data-cite="SCREEN-CAPTURE#dfn-browser">tab capture</a> or
17+
<a data-cite="SCREEN-CAPTURE#dfn-window">window capture</a>.
1718
</p>
1819
</section>
1920
<section id="sotd">
@@ -25,12 +26,18 @@ <h2>Problem Description</h2>
2526
<section id="generic-problem-desc">
2627
<h3>Generic Problem Description</h3>
2728
<p>
28-
Consider a web-application, running in one tab, which well name "<var>main_app</var>."
29+
Consider a web-application, running in one tab, which we'll name "<var>main_app</var>."
2930
Assume <var>main_app</var> calls
3031
<a data-cite="SCREEN-CAPTURE#dom-mediadevices-getdisplaymedia">getDisplayMedia</a>
31-
and the user chooses to share another tab, where an application is running which we’ll
32-
call "<var>captured_app</var>."
32+
and the user chooses to either:
3333
</p>
34+
<ul>
35+
<li>
36+
Share another tab, where an application is running which we'll call
37+
"<var>captured_app</var>."
38+
</li>
39+
<li>Share a user agent window hosting such a tab.</li>
40+
</ul>
3441
<p>Note that:</p>
3542
<ol>
3643
<li><var>main_app</var> does not know what it is capturing.</li>
@@ -317,9 +324,14 @@ <h3>MediaStreamTrack.getCaptureHandle()</h3>
317324
</dt>
318325
<dd>
319326
<p>
320-
If the track in question is not a video track, or does not represent a
321-
<a data-cite="SCREEN-CAPTURE#dfn-browser">browser</a>
322-
<a data-cite="SCREEN-CAPTURE#dfn-display-surface">display surface</a>, then the user
327+
If the track in question is not a video track then the user agent MUST return
328+
<code>null</code>.
329+
</p>
330+
<p>
331+
If the track does not represent either a
332+
<a data-cite="SCREEN-CAPTURE#dfn-browser">browser</a> or a
333+
<a data-cite="SCREEN-CAPTURE#dfn-window">window</a>
334+
<a data-cite="SCREEN-CAPTURE#dfn-display-surface">display surface</a> then the user
323335
agent MUST return <code>null</code>.
324336
</p>
325337
<p>

0 commit comments

Comments
 (0)