spot: fixing audio capture
This commit is contained in:
parent
d733ab9b4f
commit
7416005370
6 changed files with 8173 additions and 5503 deletions
BIN
spot/.yarn/install-state.gz
Normal file
BIN
spot/.yarn/install-state.gz
Normal file
Binary file not shown.
934
spot/.yarn/releases/yarn-4.5.1.cjs
vendored
Executable file
934
spot/.yarn/releases/yarn-4.5.1.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
3
spot/.yarnrc.yml
Normal file
3
spot/.yarnrc.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.5.1.cjs
|
||||
|
|
@ -223,17 +223,17 @@ class ScreenRecorder {
|
|||
console.error('get stream error:', e);
|
||||
throw e;
|
||||
}
|
||||
// try {
|
||||
// microphoneStream = await navigator.mediaDevices.getUserMedia({
|
||||
// audio: { echoCancellation: false, deviceId: audioId },
|
||||
// });
|
||||
// this.audioTrack = microphoneStream.getAudioTracks()[0];
|
||||
// if (!useMicrophone) {
|
||||
// this.audioTrack.enabled = false;
|
||||
// }
|
||||
// } catch (e) {
|
||||
// console.error('get audio error', e);
|
||||
// }
|
||||
try {
|
||||
microphoneStream = await navigator.mediaDevices.getUserMedia({
|
||||
audio: { echoCancellation: false, deviceId: audioId },
|
||||
});
|
||||
this.audioTrack = microphoneStream.getAudioTracks()[0];
|
||||
if (!useMicrophone) {
|
||||
this.audioTrack.enabled = false;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('get audio error', e);
|
||||
}
|
||||
try {
|
||||
this.audioTrack = this.createPlaceholderAudioTrack();
|
||||
} catch (e) {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "wxt-starter",
|
||||
"description": "manifest.json description",
|
||||
"private": true,
|
||||
"version": "1.0.10",
|
||||
"version": "1.0.11",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "wxt",
|
||||
|
|
@ -32,6 +32,7 @@
|
|||
"@wxt-dev/module-solid": "^1.1.2",
|
||||
"daisyui": "^4.12.10",
|
||||
"typescript": "^5.4.5",
|
||||
"wxt": "0.19.10"
|
||||
}
|
||||
"wxt": "0.19.13"
|
||||
},
|
||||
"packageManager": "yarn@4.5.1"
|
||||
}
|
||||
|
|
|
|||
12710
spot/yarn.lock
12710
spot/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue