--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/8282b590-5978-49e8-84ed-79c3c66371e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; if (navigator.getUserMedia) { navigator.getUserMedia({video: true, audio: true}, function(){ // Success // check if mic is provided navigator.mediaDevices.enumerateDevices().then(function(devices) { devices.forEach(function(device) { //if mic is plugged in if (((device.kind === 'audioinput') && (device.kind === 'videoinput')) || device.kind === 'audioinput') { //check if mic has permission //works only in Chrome if ((device.label).length > 0) { //go to chat room }; }; }); }).catch(function(err) { console.log(err.name + ": " + error.message); }); }, function(){ // Failure }); };--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/9500fe35-514b-45b5-8d87-26f91d4c9ea1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.