Re: [mediacapture-main] GetDisplayMedia don't capture the audio from microphone (#694)

that is my code as you suggest i just modify a little bit on it!

i arrived to share the video but not the audio! am I right?

```
let audioTrack, videoTrack, stream;

            navigator.mediaDevices.getDisplayMedia({
                    video: true
                })
                .then(displayStream => {


                    videoTrack = displayStream.getVideoTracks();

                    navigator.mediaDevices.getUserMedia({
                        audio: true
                    }).then((audioStream) => {
                        audioTrack = audioStream.getAudioTracks();
                        stream = new MediaStream(videoTrack, audioTrack);

                        mediaStreamObj = stream;
                        video.srcObject = stream;
                        video.play();
                        video.volume = 0;
```

-- 
GitHub Notification of comment by athina635
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/694#issuecomment-624975272 using your GitHub account

Received on Thursday, 7 May 2020 01:23:33 UTC