|
602 | 602 | "html": "<p>Let <var>deviceInfo</var> be the result of\n <a data-link-type=\"dfn|abstract-op\" href=\"https://www.w3.org/TR/mediacapture-streams/#creating-a-device-info-object\" class=\"internalDFN\" id=\"ref-for-creating-a-device-info-object-3\">creating a device info object</a> to represent <var>device</var>,\n with <var>mediaDevices</var>.</p>" |
603 | 603 | }, |
604 | 604 | { |
605 | | - "html": "<p>If <var>device</var> is the system default audio output,\n prepend <var>deviceInfo</var> to <var>otherDeviceList</var>.\n Otherwise, append <var>deviceInfo</var> to <var>otherDeviceList</var>.</p>" |
| 605 | + "html": "Append <var>deviceInfo</var> to <var>otherDeviceList</var>.<p></p>" |
| 606 | + }, |
| 607 | + { |
| 608 | + "html": "If <var>device</var> is the system default audio output,\n run the following sub steps:", |
| 609 | + "rationale": "let", |
| 610 | + "steps": [ |
| 611 | + { |
| 612 | + "html": "<p>Let <var>defaultAudioOutputInfo</var> be the result of\n <a data-link-type=\"dfn|abstract-op\" href=\"https://www.w3.org/TR/mediacapture-streams/#creating-a-device-info-object\" class=\"internalDFN\" id=\"ref-for-creating-a-device-info-object-4\">creating a device info object</a> to represent <var>device</var>,\n with <var>mediaDevices</var>.</p>" |
| 613 | + }, |
| 614 | + { |
| 615 | + "html": "<p>Set <var>defaultAudioOutputInfo</var>'s <a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-deviceid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-deviceid-4\"><code>deviceId</code></a> to\n \"default\".</p>" |
| 616 | + }, |
| 617 | + { |
| 618 | + "html": "<p>The user agent <em class=\"rfc2119\">SHOULD</em> update <var>defaultAudioOutputInfo</var>'s <a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-label\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-label-1\"><code>label</code></a>\n to make it explicit that this is the system default audio output.</p>" |
| 619 | + }, |
| 620 | + { |
| 621 | + "html": "<p>Prepend <var>defaultAudioOutputInfo</var> to <var>otherDeviceList</var>.</p>" |
| 622 | + } |
| 623 | + ] |
606 | 624 | } |
607 | 625 | ] |
608 | 626 | }, |
|
639 | 657 | "html": "<p>If <var>deviceInfo</var>.<a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-kind\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-kind-6\"><code>kind</code></a> is equal to \"audioinput\"\n and <a data-link-type=\"dfn|abstract-op\" href=\"https://www.w3.org/TR/mediacapture-streams/#microphone-information-can-be-exposed\" class=\"internalDFN\" id=\"ref-for-microphone-information-can-be-exposed-2\">microphone information can be exposed</a> on <var>mediaDevices</var> is <code>false</code>, return <var>deviceInfo</var>.</p>" |
640 | 658 | }, |
641 | 659 | { |
642 | | - "html": "<p>Initialize <var>deviceInfo</var>.<a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-label\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-label-3\"><code>label</code></a> for <var>device</var>.</p>" |
| 660 | + "html": "<p>Initialize <var>deviceInfo</var>.<a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-label\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-label-4\"><code>label</code></a> for <var>device</var>.</p>" |
643 | 661 | }, |
644 | 662 | { |
645 | | - "html": "<p>If a stored <a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-deviceid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-deviceid-6\"><code>deviceId</code></a> exists for\n <var>device</var>, initialize <var>deviceInfo</var>.<a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-deviceid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-deviceid-7\"><code>deviceId</code></a> to that value.\n Otherwise, let <var>deviceInfo</var>.<a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-deviceid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-deviceid-8\"><code>deviceId</code></a> be a\n newly generated unique identifier as described under <a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-deviceid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-deviceid-9\"><code>deviceId</code></a>.</p>" |
| 663 | + "html": "<p>If a stored <a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-deviceid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-deviceid-7\"><code>deviceId</code></a> exists for\n <var>device</var>, initialize <var>deviceInfo</var>.<a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-deviceid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-deviceid-8\"><code>deviceId</code></a> to that value.\n Otherwise, let <var>deviceInfo</var>.<a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-deviceid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-deviceid-9\"><code>deviceId</code></a> be a\n newly generated unique identifier as described under <a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-deviceid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-deviceid-10\"><code>deviceId</code></a>.</p>" |
646 | 664 | }, |
647 | 665 | { |
648 | 666 | "html": "<p>If <var>device</var> belongs to the same physical\n device as a device already represented for <var>document</var>,\n initialize <var>deviceInfo</var>.<a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-groupid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-groupid-4\"><code>groupId</code></a> to the\n <a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-groupid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-groupid-5\"><code>groupId</code></a> value of the existing <a data-link-type=\"idl\" data-lt=\"MediaDeviceInfo\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-9\"><code>MediaDeviceInfo</code></a> object.\n Otherwise, let <var>deviceInfo</var>.<a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-groupid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-groupid-6\"><code>groupId</code></a> be a\n newly generated unique identifier as described under <a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediadeviceinfo-groupid\" class=\"internalDFN\" id=\"ref-for-dom-mediadeviceinfo-groupid-7\"><code>groupId</code></a>.</p>" |
|
0 commit comments