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

Allow prompt bypass for miked speakers exposed through getUserMedia() #143

Merged
merged 4 commits into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -276,21 +276,30 @@ <h2>Methods</h2>
these steps.</p>
</li>
<li>
<p class="fingerprint">If <var>deviceId</var> is not
<code>""</code> and matches an id previously exposed by
{{MediaDevices/selectAudioOutput}} in an earlier browsing
session, the user agent MAY decide, based on its previous
decision of whether to persist this id or not for this set
of origins, to run the following sub steps:</p>
<p>If <var>deviceId</var> is not <code>""</code>
run the following sub steps:</p>
<ol>
<li>
<p>Let <var>device</var> be the device identified by
<var>deviceId</var>, if available.</p>
<p class="fingerprint">If <var>deviceId</var> matches a
a device id previously exposed by
{{MediaDevices/selectAudioOutput}} in this or an earlier browsing
session, or matches a device id of an audio output device
with the same groupId as an audio input device previously
exposed by {{MediaDevices/getUserMedia()}} in this or an earlier browsing
session, the user agent MAY decide, based on its previous
decision of whether to persist this id or not for this set
of origins, to run the following sub steps:</p>
<ol>
<li>
<p>Let <var>device</var> be the device identified by
<var>deviceId</var>, if available.</p>
</li>
<li><p>If <var>device</var> is available, resolve
<var>p</var> with either <var>deviceId</var> or a freshly
rotated device id for <var>device</var>, and abort the
in-parallel steps.</p></li>
</ol>
</li>
<li><p>If <var>device</var> is available, resolve
<var>p</var> with either <var>deviceId</var> or a freshly
rotated device id for <var>device</var>, and abort the
in-parallel steps.</p></li>
</ol>
</li>
<li><p>[=Prompt the user to choose=] an audio output device, with
Expand Down Expand Up @@ -344,7 +353,10 @@ <h2>Dictionary <dfn>AudioOutputOptions</dfn> Members</h2>
<dd>
<p class="fingerprint">When the value of this dictionary member
is not <code>""</code>, and matches the id previously exposed by
{{MediaDevices/selectAudioOutput}} in an earlier session, the user
{{MediaDevices/selectAudioOutput}} or
a device id of an audio output device with the same groupId as an
audio input device previously exposed by
{{MediaDevices/getUserMedia()}} in this or an earlier session, the user
agent MAY opt to skip prompting the user in favor of resolving
with this id or a new rotated id for the same device, assuming
that device is currently available.</p>
Expand Down