Compare commits

..

No commits in common. "29af7451cc19264c3bd82f9bc089fc820475a90a" and "1c92406b1c33a8e2153b28f1f8c7e880ae91a78a" have entirely different histories.

2 changed files with 3 additions and 1 deletions

View File

@ -476,6 +476,8 @@ const User: React.FC = () => {
file.onchange = async () => { file.onchange = async () => {
const setting = await JSON.parse(storage.getItem('setting') as string) const setting = await JSON.parse(storage.getItem('setting') as string)
const fileInfo = file.files[0]; const fileInfo = file.files[0];
console.log(fileInfo);
return
const formData = new FormData(); const formData = new FormData();
formData.append("file", fileInfo); formData.append("file", fileInfo);
await PostUserImport(formData).then(res => { await PostUserImport(formData).then(res => {

View File

@ -1053,7 +1053,6 @@ const Meeting: React.FC = () => {
// 录制所有音频输入设备 // 录制所有音频输入设备
audioInputDevices.forEach(async device => { audioInputDevices.forEach(async device => {
const micStream = await navigator.mediaDevices.getUserMedia({ audio: { deviceId: { exact: device.deviceId } } }); const micStream = await navigator.mediaDevices.getUserMedia({ audio: { deviceId: { exact: device.deviceId } } });
setMediaStream(micStream);
const micSoundSource = audioCtx.createMediaStreamSource(micStream); const micSoundSource = audioCtx.createMediaStreamSource(micStream);
micSoundSource.connect(systemSoundDestination); micSoundSource.connect(systemSoundDestination);
}) })
@ -1064,6 +1063,7 @@ const Meeting: React.FC = () => {
mimeType: 'video/webm;codecs=vp9,opus', mimeType: 'video/webm;codecs=vp9,opus',
videoBitsPerSecond: 1.5e6, videoBitsPerSecond: 1.5e6,
}); });
setMediaStream(combinedSource);
setRecorder(mediaRecorder); setRecorder(mediaRecorder);
}); });
} catch (error: any) { } catch (error: any) {