node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »


getUserMedia Adatper

Copyrights goes to:

npm downloads

navigator.getUserMedi is upgraded into promises based API: navigator.mediaDevices.getUserMedia.

This shim/polyfill merely helps handling cross-browser issues.

Check all releases:

How to link?

<script src=""></script>

It is suggested to link specific release:


<!-- use 5.2.4 or any other version -->
<script src=""></script>

How to use?

function successCallback(stream) {
    video.srcObject = stream;
function errorCallback(error) {
    // maybe another application is using the device 
var mediaConstraints = { video: true, audio: true };