diff --git a/index.html b/index.html index ef405bb..e261f35 100644 --- a/index.html +++ b/index.html @@ -80,13 +80,8 @@

Methods

steps:

  1. -

    Let document be the - - current settings object's - - relevant global object's - - associated Document.

    +

    Let document be [=this=]'s [=relevant global object=]'s + [=associated `Document`=].

  2. If document is not @@ -248,7 +243,7 @@

    Methods

    When the {{selectAudioOutput}} method is called, the [=user agent=] MUST run the following steps:

      -
    1. If the [=relevant global object=] of [=this=] does not have +

    2. If [=this=]'s [=relevant global object=] does not have [=transient activation=], return a promise rejected with a {{DOMException}} object whose {{DOMException/name}} attribute has the value {{InvalidStateError}}.

    3. @@ -300,7 +295,7 @@

      Methods

      has the value {{NotAllowedError}} and abort these steps.

    4. Let deviceInfo be a new {{MediaDeviceInfo}} object to represent the selected audio output device.

    5. Add deviceInfo.{{MediaDeviceInfo/deviceId}} - to [[\explicitlyGrantedAudioOutputDevices]].

    6. + to [[\explicitlyGrantedAudioOutputDevices]].

    7. Resolve p with deviceInfo.

  3. @@ -391,28 +386,25 @@

    Obtaining Consent

    This conveniently handles the common case of wanting to route both input and output audio through a headset or speakerphone device.

    -

    On page load, run the following step:

    -
      +

      Upon [=create a MediaDevices | creation of a MediaDevices=] object + mediaDevices, initialize mediaDevices with an + additional internal slot:

      +
    +

    This specification specifies the exposure decision algorithm for devices other than camera and microphone. - The algorithm runs as follows, with device, microphoneList and cameraList as input: + The algorithm runs as follows, with device, microphoneList, cameraList and + mediaDevices as input:

    1. -

      Let document be the - - current settings object's - - relevant global object's - - associated Document.

      +

      Let document be mediaDevices's + [=relevant global object=]'s [=associated `Document`=].

    2. Let deviceInfo be a new {{MediaDeviceInfo}} object to represent the device.

    3. @@ -423,7 +415,7 @@

      Obtaining Consent

    4. If deviceInfo.{{MediaDeviceInfo/deviceId}} - is in [[\explicitlyGrantedAudioOutputDevices]], return true.

      + is in [[\explicitlyGrantedAudioOutputDevices]], return true.

    5. If deviceInfo.{{MediaDeviceInfo/groupId}} diff --git a/script.js b/script.js index a8d5da9..f923499 100644 --- a/script.js +++ b/script.js @@ -57,7 +57,7 @@ var respecConfig = { // name (without the @w3.org) of the public mailing to which comments are due wgPublicList: "public-webrtc", github: "https://github.com/w3c/mediacapture-output/", - xref: ["webidl", "html", "permissions", "mediacapture-streams", "permissions-policy","dom", "webaudio"], + xref: ["webidl", "html", "permissions", "mediacapture-streams", "permissions-policy","dom", "webaudio", "infra"], implementationReportURI: "https://wpt.fyi/audio-output", otherLinks: [ {