From d9b6dfceeb237636c8eded6e8d1336388c2fb77f Mon Sep 17 00:00:00 2001
From: Jan-Ivar Bruaroey If deviceId is not
- If deviceId is not
When the value of this dictionary member
is not Methods
""
and matches an id previously exposed by
- {{MediaDevices/selectAudioOutput}} in an earlier browsing
+ ""
and matches an audio output device id previously
+ exposed by {{MediaDevices/selectAudioOutput}} or
+ {{MediaDevices/enumerateDevices()}} 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:Methods
""
and matches an audio output device id previously
exposed by {{MediaDevices/selectAudioOutput}} or
- {{MediaDevices/enumerateDevices()}} in an earlier browsing
+ {{MediaDevices/getUserMedia()}} 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:Dictionary AudioOutputOptions Members
""
, and matches the id previously exposed by
- {{MediaDevices/selectAudioOutput}} in an earlier session, the user
+ {{MediaDevices/selectAudioOutput}} or
+ {{MediaDevices/getUserMedia()}} in 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.Methods
these steps.
If deviceId is not
- ""
and matches an audio output device id previously
- exposed by {{MediaDevices/selectAudioOutput}} or
- {{MediaDevices/getUserMedia()}} 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:
If deviceId is not ""
+ run the following sub steps:
Let device be the device identified by - deviceId, if available.
+If deviceId matches a + a device id previously exposed by + {{MediaDevices/selectAudioOutput}} in 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 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:
+Let device be the device identified by + deviceId, if available.
+If device is available, resolve + p with either deviceId or a freshly + rotated device id for device, and abort the + in-parallel steps.
If device is available, resolve - p with either deviceId or a freshly - rotated device id for device, and abort the - in-parallel steps.
[=Prompt the user to choose=] an audio output device, with @@ -346,6 +354,8 @@
When the value of this dictionary member
is not If deviceId matches a
a device id previously exposed by
- {{MediaDevices/selectAudioOutput}} in an earlier browsing
+ {{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 an earlier browsing
+ 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:""
, and matches the id previously exposed by
{{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 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
From e8f358798ce3668a8010000bfa8b12eb87e71d02 Mon Sep 17 00:00:00 2001
From: Jan-Ivar Bruaroey Methods
Dictionary AudioOutputOptions Members
{{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 an earlier session, the user
+ {{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.