diff --git a/index.html b/index.html index 987c9fd..4f4b0e8 100644 --- a/index.html +++ b/index.html @@ -59,7 +59,7 @@
On getting, the attribute MUST return the value of the {{HTMLMediaElement/[[SinkId]]}} slot.
@@ -256,8 +256,8 @@Run the following steps in parallel:
Let descriptor be a {{PermissionDescriptor}} named - {{PermissionName/"speaker-selection"}}.
+Let descriptor be a {{PermissionDescriptor}} with its + [=powerful feature/name=] set to "speaker-selection"
If descriptor's [=permission state=] is @@ -432,6 +432,70 @@
The Audio Output Devices API is a [=powerful feature=] that is + identified by the [=powerful feature/name=] "speaker-selection".
+It defines the following types and algorithms:
++ A permission covers access to the device given in the associated + {{DevicePermissionDescriptor}} descriptor. +
++ If the descriptor does not have a {{DevicePermissionDescriptor/deviceId}}, its + semantic is that it queries for access to all devices of that class. Thus, if a query + for the "speaker-selection" [=powerful feature=] with no + {{DevicePermissionDescriptor/deviceId}} returns {{PermissionState/"granted"}}, the + client knows that there will never be a permission prompt for an audio output device, + and if {{PermissionState/"denied"}} is returned, it knows that no selectAudioOutput request + for an audio output device will succeed. +
++ If a permission state is present for access to some, but not all, audio output devices, + a query without the {{DevicePermissionDescriptor/deviceId}} will return + {{PermissionState/"prompt"}}. +
+|status|.state
to |permissionDesc|'s permission state
+ and terminate these steps.
+ |status|.state
to global's permission state.
+ undefined
is passed in place of {{DevicePermissionDescriptor/deviceId}}.
+ This specification defines one