#Capture Audio from specific window
2 messages · Page 1 of 1 (latest)
I have been trying it out for a few hours and on Ubuntu, every time I try to set audio true to the object passed to getUserMedia, it totally crashes
media_source = await navigator.mediaDevices.getUserMedia({
video: video_setup,
audio: {
// TODO: allow this to toggle
chromeMediaSource: "desktop", //chromeMediaSourceId: screen_value,
},
});
// Assign the media stream to the video element to start streaming
const videoElement = document.querySelector("#screenrecord-feed video");
videoElement.srcObject = media_source;
videoElement.play(); // Start playing the video stream
} catch (error) {
alert("Error capturing screen:", error);
}
been seeing on google only issues of trying to get specific audio tracks on linux