Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 465 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 465 Bytes

WebRTC Microphone Select

This is a Browser package that will request access to getUserMedia and then return the list of microphone devices that are available for use.

A device can then be selected, and then volume levels events are emitted.

Sample Code

var ms = new micselect();
var once = true;
ms.getMics();
ms.on('audioSources', function(as) {
  console.log(as);
  ms.setMic(as[0]);
  });
ms.on('volume', function(vol) {
  console.log(vol);
})