QB.webrtc.getMediaDevices("videoinput").then(function(devices) { if (devices.length) { // here is a list o