W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > December 2019

Re: [mediacapture-main] Clarify getUserMedia({audio:{deviceId:{exact:<audiooutput_device>}}}) in this specification mandates capability to capture of audio output device - not exclusively microphone input device (#650)

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Sat, 21 Dec 2019 17:48:21 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-568199176-1576950499-sysbot+gh@w3.org>
As explained in https://github.com/w3c/mediacapture-main/pull/651#issuecomment-565195323 as well as in comments here, the model in this spec is source->sink, and the Firefox's "Monitor of" device is an `"audioinput"`, a source.

In contrast, `"audiooutput"` is a sink and is enumerated for use with `setSinkId`, not `getUserMedia`. Mandating the latter would be a mistake, as it would effectively prevent a browser from exposing an output device it does not also support capture of. The existing spec model doesn't have that problem, nor does it prevent such cases.

> The use case is very simple: capture audio output of speechSythesis.speak() which outputs audio directly from the system

If the desire is to get at the output of speechSynthesis, please take that up with the working group responsible for speechSynthesis directly. Solving that here would be a hack in my view.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/650#issuecomment-568199176 using your GitHub account
Received on Saturday, 21 December 2019 17:48:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:35 UTC