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

Re: [mediacapture-main] Support capturing audio output from sound card (#629)

From: guest271314 via GitHub <sysbot+gh@w3.org>
Date: Sat, 12 Oct 2019 01:07:57 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-541267461-1570842476-sysbot+gh@w3.org>




When `let stream = navigator.mediaDevices.getUserMedia()` is executed the options currently available are microphone and camera. When `enumerateDevices()` is used to get the `deviceId` of `"audioouput"` then `stream = await navigator.mediaDevices.getUserMedia({audio:{deviceId:{exact: deviceId}}})` needs to be executed _again_. 

There should be a means to directly select `"audioutput"` at the prompt, by default, not implementer design alone (Firefox might provide such a UI, not Chromium, Chrome where `devicechange` event is not dispatched on `mediaDevices`). 

It is not immediately clear _at the specification_ that to select `"audiooutput"` `navigator.getUserMedia({audio:<settings>})` needs to be executed twice to get _only_ audio output and not input from microphone.

What is the canonical procedure to capture audio _output_ (not input from a microphone) from the system? 



-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/629#issuecomment-541267461 using your GitHub account
Received on Saturday, 12 October 2019 01:07:59 UTC

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