Socket
Socket
Sign inDemoInstall

webrtc-sources

Package Overview
Dependencies
5
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    webrtc-sources

WebRTC Microphone Selection Lib


Version published
Weekly downloads
11
Maintainers
1
Install size
518 kB
Created
Weekly downloads
 

Readme

Source

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);
})

FAQs

Last updated on 03 Feb 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc