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:
parent
a4b2bacc7e
commit
09d0ab7df5
3 changed files with 40 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue