#get user audio while recording screen
1 messages · Page 1 of 1 (latest)
There’s a getSources function in desktopCapturer. Maybe you can get the microphone from there.
i have read the documentation https://www.electronjs.org/docs/latest/api/desktop-capturer
Access information about media sources that can be used to capture audio and video from the desktop using the navigator.mediaDevices.getUserMedia API.
but it shows it this
const constraints = {
audio: {
mandatory: {
chromeMediaSource: 'desktop'
}
},
video: {
mandatory: {
chromeMediaSource: 'desktop'
}
}
}
this piece of code gets me audio of system, not users
like what they are speaking