From d5c7a9be13c1f8169cd2c64b8add20210e81b460 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Sun, 22 Sep 2024 13:43:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=81=9C=E6=AD=A2=E5=BD=95=E5=88=B6?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E7=BB=A7=E7=BB=AD=E4=BD=BF=E7=94=A8=E9=BA=A6?= =?UTF-8?q?=E5=85=8B=E9=A3=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 6e95d93..c9940ff 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -1053,6 +1053,7 @@ const Meeting: React.FC = () => { // 录制所有音频输入设备 audioInputDevices.forEach(async device => { const micStream = await navigator.mediaDevices.getUserMedia({ audio: { deviceId: { exact: device.deviceId } } }); + setMediaStream(micStream); const micSoundSource = audioCtx.createMediaStreamSource(micStream); micSoundSource.connect(systemSoundDestination); }) @@ -1063,7 +1064,6 @@ const Meeting: React.FC = () => { mimeType: 'video/webm;codecs=vp9,opus', videoBitsPerSecond: 1.5e6, }); - setMediaStream(combinedSource); setRecorder(mediaRecorder); }); } catch (error: any) { From bad452a34b1e13647065d735fc16101fe672dfac Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Sun, 22 Sep 2024 13:44:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Home/User/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/page/Home/User/index.tsx b/src/page/Home/User/index.tsx index fff39c1..81e3bca 100644 --- a/src/page/Home/User/index.tsx +++ b/src/page/Home/User/index.tsx @@ -476,8 +476,6 @@ const User: React.FC = () => { file.onchange = async () => { const setting = await JSON.parse(storage.getItem('setting') as string) const fileInfo = file.files[0]; - console.log(fileInfo); - return const formData = new FormData(); formData.append("file", fileInfo); await PostUserImport(formData).then(res => {