diff --git a/src/assets/icon22-active.png b/src/assets/icon22-active.png index 87bce29..af608af 100644 Binary files a/src/assets/icon22-active.png and b/src/assets/icon22-active.png differ diff --git a/src/assets/icon23-active.png b/src/assets/icon23-active.png index bb17074..91c0781 100644 Binary files a/src/assets/icon23-active.png and b/src/assets/icon23-active.png differ diff --git a/src/assets/暂时无用.png b/src/assets/暂时无用.png deleted file mode 100644 index b5cfda2..0000000 Binary files a/src/assets/暂时无用.png and /dev/null differ diff --git a/src/components/JoinSetting/index.tsx b/src/components/JoinSetting/index.tsx index 317e792..f470959 100644 --- a/src/components/JoinSetting/index.tsx +++ b/src/components/JoinSetting/index.tsx @@ -139,7 +139,7 @@ const JoinSetting = forwardRef((_props: any, ref: any) => { }) } if (msg) { - message.error('未检测到麦克风!') + message.error(msg) return } const list = [...joinRoomSettingForm] diff --git a/src/utils/package/agora.ts b/src/utils/package/agora.ts index ef7426f..2156645 100644 --- a/src/utils/package/agora.ts +++ b/src/utils/package/agora.ts @@ -235,7 +235,13 @@ const agora = { }, // 摄像头采集 startCameraCapture: async () => { - await rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, {}) + await rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, { + format: { + width: 640, + height: 360, + fps: 15, + } + }) }, // 停止采集摄像头 stopCameraCapture: async () => { @@ -259,14 +265,12 @@ const agora = { if (isComputerAudio) { rtcEngine.enableLoopbackRecording(true) } - let data = {}; - if (isFluencyPriority) { - data = { - frameRate: 60, - dimensions: { - window: 3840, - height: 2160, - } + + let data = { + frameRate: isFluencyPriority ? 30 : 15, + dimensions: { + window: 1920, + height: 1080, } } if (