[mediacapture-main] [Feature] registerStream(deviceId = '0', stream = MediaStream) (#712)

guest271314 has just created a new issue for https://github.com/w3c/mediacapture-main:

== [Feature] registerStream(deviceId = '0', stream = MediaStream) ==
Created a workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=931749 and https://bugs.chromium.org/p/chromium/issues/detail?id=1013881 to capture system audio output at Chromium. 

The issue now is that in order to achieve the workaround am using localhost where CORS, COOP, COEP are factors.

Am not sure precisely how to use signaling for WebRTC to access the `MediaStream` at any origin.

One solution would be a function that registers a `MediaStream` to be listed in `enumerateDevices()` then the user can select by `deviceId` at any origin.

At localhost

`await registerStream('0', mediaStream)` // registered

At any origin

`await navigator.mediaDevices.getUserMedia({audio: {deviceId: {exact: '0'}}})` // registered stream

Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/712 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 20 August 2020 14:12:56 UTC