From c2d9e2cbeab0b361a09682ce8f53b6cd85319c28 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 29 Aug 2024 17:41:50 +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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/package/agora.ts b/src/utils/package/agora.ts index 2be8249..ac4153e 100644 --- a/src/utils/package/agora.ts +++ b/src/utils/package/agora.ts @@ -245,7 +245,6 @@ export const agora = { await agora.updateChannelMediaOptionsEx(false) }, updateChannelMediaOptionsEx: async (bool: boolean) => { - bool ? agora.startCameraCapture() : agora.stopCameraCapture(); rtcEngine.updateChannelMediaOptionsEx({ clientRoleType: bool ? ClientRoleType.ClientRoleBroadcaster : ClientRoleType.ClientRoleAudience, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众 autoSubscribeAudio: false,//设置是否自动订阅所有音频流 @@ -273,7 +272,7 @@ export const agora = { }, // 取消或恢复发布本地视频流 muteLocalVideoStream: async (mute: any) => { - await rtcEngine.muteLocalVideoStream(mute) + // await rtcEngine.muteLocalVideoStream(mute) }, // 摄像头采集 startCameraCapture: async () => {