I am trying to create a web application that captures both local and remote audio from a webrtc call, but I cannot record remote sound (using recordRTC). I was wondering if I could somehow capture the system.
Is there any way to capture the sound of the system (not just the microphone) from the browser. Maybe an extension?
In Chrome, chrome.desktopCapture the API extension can be used to capture a screen that includes system sound (but only for Windows and Chrome OS and without OS X or Linux plans ). For instance.
chrome.desktopCapture
chrome.desktopCapture.chooseDesktopMedia([ 'screen', 'window' // ('tab' is not supported; use chrome.tabCapture instead) ], function(streamId) { navigator.webkitGetUserMedia({ audio: { mandatory: { chromeMediaSource: 'system', chromeMediaSourceId: streamId } }, video: false, // We only want audio for now. }, function(stream) { // Do what you want with this MediaStream. }, function(error) { // Handle error }); });
I'm not sure that Firefox can capture system sound, but at least it is capable of capturing some results (tab / window / browser / OS?). First you need to visit about:config and set media.getusermedia.audiocapture.enabled to true (this can be automated using the Firefox add-on). Then the stream can be written as follows:
about:config
media.getusermedia.audiocapture.enabled
true
navigator.mozGetUserMedia({ audio: { mediaSource: 'audioCapture' }, video: false, // Just being explicit, we only want audio for now }, function(stream) { // Do what you want with this MediaStream. }, function(error) { // Handle error });
This was implemented in Firefox 42, https://bugzilla.mozilla.org/show_bug.cgi?id=1156472
Source: https://habr.com/ru/post/1237962/More articles:Question about accuracy in coffee - deep-learningIs there hardware support for 128-bit integers in modern processors? - x86Counting the number of columns in a numpy array - pythonHow to decide what promise will then be / catch according to - javascriptSymfony 3.0 and HWIOAuthBundle not working together? - phpJavascript arrays? - javascriptGarbage collection on Map and WeakMap collections in es6 - javascriptpython - How to get high and low envelope of a signal? - pythonIs there a way to detect push deployments within a Swift project? - swiftHow to get sound envelope using python? - pythonAll Articles