updated dependencies

This commit is contained in:
Kaitlyn 2023-09-25 23:01:25 -04:00
parent bf4c2038e2
commit 8ac5409dab
6 changed files with 482 additions and 664 deletions

14
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm run start:dev",
"name": "Run npm run start:dev",
"request": "launch",
"type": "node-terminal"
}
]
}

View file

@ -28,28 +28,28 @@
},
"devDependencies": {
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
"@types/node": "^20.4.6",
"@types/react": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"@types/node": "^20.7.0",
"@types/react": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@vencord/types": "^0.1.2",
"dotenv": "^16.3.1",
"electron": "^26.2.2",
"electron-builder": "^24.6.3",
"esbuild": "^0.18.17",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.9.0",
"electron-builder": "^24.6.4",
"esbuild": "^0.18.20",
"eslint": "^8.50.0",
"eslint-config-prettier": "^8.10.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-license-header": "^0.6.0",
"eslint-plugin-path-alias": "^1.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"prettier": "^3.0.0",
"prettier": "^3.0.3",
"source-map-support": "^0.5.21",
"tsx": "^3.12.7",
"type-fest": "^4.1.0",
"typescript": "^5.1.6"
"tsx": "^3.13.0",
"type-fest": "^4.3.1",
"typescript": "^5.2.2"
},
"packageManager": "pnpm@8.6.11",
"engines": {

File diff suppressed because it is too large Load diff

View file

@ -30,7 +30,8 @@ export function registerScreenShareHandler() {
width: 176,
height: 99
}
});
}).catch(() => null);
if (sources === null) return callback({});
const isWayland =
process.platform === "linux" &&
@ -58,13 +59,10 @@ export function registerScreenShareHandler() {
const source = sources.find(s => s.id === choice.id);
if (!source) return callback({});
const pwvirtmic = getAudioFromVirtmic();
const streams: Streams = {
video: source
};
if (choice.audio && process.platform === "win32") streams.audio = "loopback";
if (choice.audio && process.platform === "linux") streams.audio = ;
callback(streams);
});

View file

@ -12,4 +12,27 @@ export function getAudioFromVirtmic() {
return audioDevice;
};
const getDisplayMedia = async () => {
var id;
try {
let myDiscordAudioSink = await getAudioDevice('virtmic');
id = myDiscordAudioSink?.deviceId;
}
catch (error) {
id = 'default';
}
let captureSystemAudioStream = await navigator.mediaDevices.getUserMedia({
audio: {
/*deviceId {
exact: id
},
autoGainControl: false,
echoCancellation: false,
noiseSuppression: false
channelCount: 2*/
}
});
};
};

View file

@ -4,7 +4,7 @@
display: none;
}
/* FIXME: Remove after 23/08/23 */
/* FIXME: Remove after 23/08/23
.vc-desktop-settings {
display: none;
}
} */