From b343cb2c8a7f63319e42af57fb2ef59d9c83657e Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Wed, 23 Dec 2015 02:29:08 +0300 Subject: [PATCH] Media Devices List --- bower_components/fingerprintjs2/fingerprint2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bower_components/fingerprintjs2/fingerprint2.js b/bower_components/fingerprintjs2/fingerprint2.js index 140ea10..35306be 100644 --- a/bower_components/fingerprintjs2/fingerprint2.js +++ b/bower_components/fingerprintjs2/fingerprint2.js @@ -543,6 +543,9 @@ return "unknown"; } }, + getMediaDevices: function(){ + return navigator.mediaDevices.getUserMedia({audio : true}).then(()=>navigator.mediaDevices.enumerateDevices()).then(e => e.map(d => d.groupId+"|"+d.kind+"|"+d.label)); + }, // This is a crude and primitive touch screen detection. // It's not possible to currently reliably detect the availability of a touch screen // with a JS, without actually subscribing to a touch event.