From 04fcbaea6252a27c096c9f9e0fbe8f0dd8ed23ec Mon Sep 17 00:00:00 2001 From: Epicminer256 Date: Tue, 19 Dec 2023 09:03:58 -0600 Subject: [PATCH] The C keybind should work now --- index.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/index.js b/index.js index a5ed085..08eeeba 100644 --- a/index.js +++ b/index.js @@ -265,23 +265,23 @@ class capturecard2VideoSidebar{ d[mediaDevice.groupId]["audio"] = mediaDevice.deviceId } }); + if(arr.length == 0){ + alert("No devices found!") + return + } + for(let devi in arr){ + finalstring += devi+": "+arr[devi].label+"\n"; + } + let a = arr[prompt("What device do you want to use?\n"+finalstring)] + console.log(a) + if(typeof a['video'] == 'string'){ + videoDeviceID = a['video'] + } + if(typeof a['audio'] == 'string'){ + audioDeviceID = a['audio'] + } + this.cap2vid.changeDevice() }); - if(arr.length == 0){ - alert("No devices found!") - return - } - for(let devi in arr){ - finalstring += devi+": "+arr[devi].label+"\n"; - } - let a = arr[prompt("What device do you want to use?\n"+finalstring)] - console.log(a) - if(typeof a['video'] == 'string'){ - videoDeviceID = a['video'] - } - if(typeof a['audio'] == 'string'){ - audioDeviceID = a['audio'] - } - this.cap2vid.changeDevice() } } }