attempt to make media selector work everywhere (TM)

loadDevices not only in electron

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-05-25 01:01:40 +01:00
parent a4b2bacc7e
commit 09d0ab7df5
3 changed files with 40 additions and 18 deletions

View file

@ -26,6 +26,8 @@ export default {
const audioIn = {};
const videoIn = {};
if (devices.some((device) => !device.label)) return false;
devices.forEach((device) => {
switch (device.kind) {
case 'audioinput': audioIn[device.deviceId] = device.label; break;