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, } })