From 6b6d895ee35886047ca206ddcc1dbe0287699eac Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Mon, 9 Sep 2024 15:59:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/package/agora.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/utils/package/agora.ts b/src/utils/package/agora.ts index ab36153..96cfaec 100644 --- a/src/utils/package/agora.ts +++ b/src/utils/package/agora.ts @@ -215,8 +215,8 @@ export const agora = { SimulcastStreamMode.EnableSimulcastStream, { dimensions: { - width: 160, - height: 160 + width: 320, + height: 180 }, framerate: 5, } @@ -303,10 +303,11 @@ export const agora = { }, // 摄像头采集 startCameraCapture: async (bool: boolean = false) => { + console.log(bool); await rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, { format: { - width: bool ? 120 : 1280, - height: bool ? 120 : 1280, + width: bool ? 160 : 1280, + height: bool ? 160 : 720, fps: 15, } })