How can I get the highest quality audio from navigator.mediaDevices.getDisplayMedia()
? Currently I'm doing this:
stream = await navigator.mediaDevices.getDisplayMedia({
video: {
mediaSource: "screen",
width: {
ideal: 4096
},
height: {
ideal: 2160
}
},
audio: {
echoCancellation: false,
googAutoGainControl: false,
autoGainControl: false,
noiseSuppression: false
}
});
which gets the screen and system audio, but the problem is that the system audio always turns out very choppy and gnarled. I referred to this page as a resource but both audio: true
and turning off noise cancellation, echo and gain does not seem to work. How can I get the max audio quality from this?
By the way, just in case I omitted something which messed everything up (I don't think I did), but here's the full code for my project: https://codesandbox.io/s/screen-recorder-wjon6?file=/index.html:2335-2536