Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define DisplayMediaStreamConstraints.selfBrowserSurface #216

Merged
merged 11 commits into from
Apr 7, 2022
Prev Previous commit
Next Next commit
Make agreed-upon changes
  • Loading branch information
eladalon1983 committed Apr 7, 2022
commit c5792d12a50c6a59d0e9212e65aa8c17469b508f
34 changes: 13 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -722,19 +722,19 @@ <h2>
</div>
</section>
<section>
<h2><dfn>CurrentTabPreferenceEnum</dfn></h2>
<h2><dfn>SelfCapturePreferenceEnum</dfn></h2>
<p>
Describes the different hints an application can provide about whether the
tab the application is in should be among the choices offered to the user.
display surface the application is in, should be among the choices offered
to the user.
</p>
<pre class="idl">
enum CurrentTabPreferenceEnum {
"no-preference",
enum SelfCapturePreferenceEnum {
"include",
"exclude"
};
</pre>
<table data-dfn-for="CurrentTabPreferenceEnum" class="simple">
<table data-dfn-for="SelfCapturePreferenceEnum" class="simple">
<tbody>
<tr>
<th colspan="2">
Expand All @@ -743,27 +743,19 @@ <h2><dfn>CurrentTabPreferenceEnum</dfn></h2>
</tr>
<tr>
<td>
<dfn id="idl-def-CurrentTabPreferenceEnum.none">none</dfn>
<dfn id="idl-def-SelfCapturePreferenceEnum.include">include</dfn>
</td>
<td>
No preference by the application.
The application prefers the surface be included
among the choices offered.
</td>
</tr>
<tr>
<td>
<dfn id="idl-def-CurrentTabPreferenceEnum.include">include</dfn>
<dfn id="idl-def-SelfCapturePreferenceEnum.exclude">exclude</dfn>
</td>
<td>
The application prefers the tab it is in to be included
in the choices offered.
</td>
</tr>
<tr>
<td>
<dfn id="idl-def-CurrentTabPreferenceEnum.exclude">exclude</dfn>
</td>
<td>
The application prefers the tab it is in to be excluded
The application prefers the surface be excluded
from the choices offered.
</td>
</tr>
Expand All @@ -781,7 +773,7 @@ <h2>DisplayMediaStreamConstraints</h2>
dictionary DisplayMediaStreamConstraints {
eladalon1983 marked this conversation as resolved.
Show resolved Hide resolved
(boolean or MediaTrackConstraints) video = true;
(boolean or MediaTrackConstraints) audio = false;
CurrentTabPreferenceEnum currentTabPreference = "none";
SelfCapturePreferenceEnum selfBrowserSurface = "none";
};</pre>
<section>
<h2>Dictionary <a class="idlType">DisplayMediaStreamConstraints</a>
Expand Down Expand Up @@ -812,8 +804,8 @@ <h2>Dictionary <a class="idlType">DisplayMediaStreamConstraints</a>
will not contain an audio track.</p>
</dd>
<dt>
<dfn><code>currentTabPreference</code></dfn> of type {{CurrentTabPreferenceEnum}},
defaulting to {{CurrentTabPreferenceEnum/none}}
<dfn><code>selfBrowserSurface</code></dfn> of type {{SelfCapturePreferenceEnum}},
defaulting to {{SelfCapturePreferenceEnum/none}}
</dt>
<dd>
If present, signals application preference for whether the
Expand Down