From fc5e9e312b0debcea13eec65594303be13b7a7a3 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 27 Aug 2024 15:55:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=9F=B3=E9=A2=91=E8=AE=A2?= =?UTF-8?q?=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/package/agora.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/package/agora.ts b/src/utils/package/agora.ts index f5e733d..0753dae 100644 --- a/src/utils/package/agora.ts +++ b/src/utils/package/agora.ts @@ -230,7 +230,7 @@ const agora = { updateChannelMediaOptionsEx: async (bool: boolean) => { rtcEngine.updateChannelMediaOptionsEx({ clientRoleType: bool ? ClientRoleType.ClientRoleBroadcaster : ClientRoleType.ClientRoleAudience, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众 - autoSubscribeAudio: true,//设置是否自动订阅所有音频流 + autoSubscribeAudio: false,//设置是否自动订阅所有音频流 autoSubscribeVideo: true,//设置是否自动订阅所有视频流 publishMicrophoneTrack: true,//设置是否发布麦克风采集到的音频 publishCameraTrack: true,//设置是否发布摄像头采集的视频