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

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