Open hoch opened 5 years ago
If I understand it correctly the Screen Capture spec does support to get a MediaStream with audio from other tabs or windows. Although it seems to be not supported by any browser so far. Would it make sense to allow other tabs or windows as an input or output of an ADC as well? This would allow to build something like Soundflower in the browser.
This is best done as an API to route a MediaStream
to an ADC.
A MediaStream
is already a good opaque object to represent a stream of real-time media, no need to reinvent the wheel.
There was an idea floating around to integrate MediaStream to AudioDeviceClient. This is just a straw-man code example.
This needs a spec work for MediaDevices API, which might take a while. However, once we can make it the API shape looks quite sensible.
cc @alvestrand