@@ -13,7 +13,8 @@ <h2>Abstract</h2>
13
13
This document proposes a mechanism by which an application < var > APP</ var > can opt-in to
14
14
exposing certain information with another application < var > CAPTR</ var > , if
15
15
< 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 > .
17
18
</ p >
18
19
</ section >
19
20
< section id ="sotd ">
@@ -25,12 +26,18 @@ <h2>Problem Description</h2>
25
26
< section id ="generic-problem-desc ">
26
27
< h3 > Generic Problem Description</ h3 >
27
28
< p >
28
- Consider a web-application, running in one tab, which we’ ll name "< var > main_app</ var > ."
29
+ Consider a web-application, running in one tab, which we' ll name "< var > main_app</ var > ."
29
30
Assume < var > main_app</ var > calls
30
31
< 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:
33
33
</ 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 >
34
41
< p > Note that:</ p >
35
42
< ol >
36
43
< li > < var > main_app</ var > does not know what it is capturing.</ li >
@@ -317,9 +324,14 @@ <h3>MediaStreamTrack.getCaptureHandle()</h3>
317
324
</ dt >
318
325
< dd >
319
326
< 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
323
335
agent MUST return < code > null</ code > .
324
336
</ p >
325
337
< p >
0 commit comments