W3C home > Mailing lists > Public > public-webrtc@w3.org > September 2018

[mediacapture-output] setSinkId is inconsistent in handling of default value.

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Fri, 28 Sep 2018 19:32:31 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-365013766-1538163150-sysbot+gh@w3.org>
jan-ivar has just created a new issue for https://github.com/w3c/mediacapture-output:

== setSinkId is inconsistent in handling of default value. ==
[sinkId](https://w3c.github.io/mediacapture-output/#dom-htmlmediaelement-sinkid) defaults to `""`(*"...the empty string if output is delivered through the user-agent default device"*)

But [[[SinkId]]](https://w3c.github.io/mediacapture-output/#htmlmediaelement-extensions) defaults to `null` (*"Let the element have a [[SinkId]] internal slot, initialized to null."*)

This messes [setSinkId](https://w3c.github.io/mediacapture-output/#dom-htmlmediaelement-setsinkid) in observable ways:

 *"3. If sinkId is equal to element's [[SinkId]], return a promise resolved with undefined."*

await element.setSinkId(element.sinkId); // NotFoundError

Instead, this should succeed, [like it does in Chrome](https://jsfiddle.net/jib1/Lumb0w6e/).

Please view or discuss this issue at https://github.com/w3c/mediacapture-output/issues/79 using your GitHub account
Received on Friday, 28 September 2018 19:32:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:44 UTC