Answer the question
In order to leave comments, you need to log in
Why doesn't WebRTC getDisplayMedia() capture the sound of a remote stream?
I welcome everyone! There is a native WebRTC application based on peerjs - video conferencing. I'm trying to implement recording using MediaRecorder and ran into an unpleasant moment. I get a desktop stream like this:
let chooseScreen = document.querySelector('.chooseScreenBtn')
chooseScreen.onclick = async () => {
let desktopStream = await navigator.mediaDevices.getDisplayMedia({ video:true, audio: true });
}
const videoElement = doc.querySelector('.videoElement')
videoElement.srcObject = desktopStream
videoElement.muted = false;
videoElement.onloadedmetadata = ()=>{videoElement.play();}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question