Reputation: 1545
In web RTC, at least using Chrome, it's possible to make a screen capture in order to stream it. It's accomplished by using the experimental chromeMediaSource constraint.
I would like to do the same but capturing only audio in order to be able to send it to a webpage. I mean, I would like to capture not the micro but the audio 'played' by my machine in order to send it to a website.
Is there such constraint in web RTC? If the answer is 'yes' is there a Firefox equivalent?
Upvotes: 0
Views: 869
Reputation: 15269
You may want to look at the MediaStream Recording API, which has been implemented in Firefox Nightly and has an Intent to Implement for Chrome.
I've put a demo at simpl.info/mediarecorder.
With Web Audio, try RecorderJS: there's a demo at webaudiodemos.appspot.com/AudioRecorder.
Upvotes: 2