WebRTC samplesSelect sources & outputs Get available audio, video sources and audio output devices from mediaDevices.enumerateDevices() then set the source for getUserMedia() using a deviceId constraint. Note: without permission, the browser will restrict the available devices to at most one per type.