New codelab: Realtime communication with WebRTC
Get available audio, video sources and audio output devices from mediaDevices.enumerateDevices()
then set the source for getUserMedia()
using a deviceId
constraint.
Note: If you hear a reverb sound your microphone is picking up the output of your speakers/headset, lower the volume and/or move the microphone further away from your speakers/headset.
View source on GitHub