You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was an idea floating around to integrate MediaStream to AudioDeviceClient. This is just a straw-man code example.
// These are MediaStream objects that are already opened.constremoteConsumer;constremoteProducer;// Scenario: device #6 and #7 are remote input and output devices respectively.(async()=>{awaitnavigator.mediaDevices.registerAudioSink(remoteConsumer);awaitnavigator.mediaDevices.registerAudioSource(remoteProducer);constdevices=awaitnavigator.mediaDevices.enumerateDevices();constconstraints={mode: ‘raw’,outputDeviceId: devices[6].deviceId,inputDeviceId: devices[7].deviceId,callbackBufferSize: 2048,inputChannelCount: 2,outputChannelCount: 2,};constclient=awaitnavigator.mediaDevices.getAudioDeviceClient(constraints);awaitclient.addModule('my-client.js');client.start();})();
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.
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.
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
The text was updated successfully, but these errors were encountered: