I tested an audio and video conversation over the webRTC, using Chrome on 2 computers from two different networks. The quality of the video is perfect and does not crash, but the sound hangs all the time, can hear my own voice and does not have quality.
How can I improve?
Code:
var haveGum = navigator.mediaDevices.getUserMedia({fake:true, video:true})
.then(stream => streams[1] = stream)
.then(() => navigator.mediaDevices.getUserMedia({ video: true, audio: true }))
.then(stream => v1.srcObject = streams[0] = stream)
I found this answer from 2014, the audio was very good. But still with cuts and sometimes the voice becomes "robotic" and it is not possible to understand what is spoken.