I need to play the audio in streaming

0

I'm doing a live Facebook type streaming, for now I'm just accessing the camera and the computer microphone.

To be able to show the video and the audio, I have to put them true, but when I want to use the audio it acts as interference (white noise). What can be done and how can I correct this error?

This is my script:

navigator.mediaDevices.getUserMedia({ audio:true, video:true}).then((stream)=>{
  console.log(stream)

  let video = document.getElementById('video')
  video.srcObject = stream

}).catch((err)=>console.log(err));
    
asked by Juan Jesus 27.05.2018 в 09:42
source

0 answers