From 960096812a807b3b60a6527eb54ce3a7addfe21e Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Mon, 22 Jul 2024 11:31:46 +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/page/Meeting/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 9038758..0b4ad50 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -124,7 +124,6 @@ const Meeting: React.FC = () => { agora.init() agora.registerEventHandler({ onJoinChannelSuccess: async (info: any, _elapsed: any) => { - console.log(info.localUid, '加入'); await onInvoke('joinChannel', { roomNum: info.channelId, enableMicr: true, @@ -140,7 +139,6 @@ const Meeting: React.FC = () => { }, 1000); }, onUserJoined: async (info: any, remoteUid: any, _elapsed: any) => { - console.log(remoteUid, '远端'); await getRoomUser() setTimeout(() => { agora.setupRemoteVideoJoin({ @@ -151,7 +149,6 @@ const Meeting: React.FC = () => { }, 1000); }, onUserOffline: async (info: any, remoteUid: any, reason: any) => { - console.log(remoteUid, "离开"); agora.setupRemoteVideo({ account: Number(remoteUid), view: document.getElementById(`video-${remoteUid}`) as HTMLElement, @@ -159,7 +156,7 @@ const Meeting: React.FC = () => { }) setTimeout(() => { getRoomUser() - }, 3000); + }, 1000); } }) agora.setCameraCapture(VideoSourceType.VideoSourceCameraPrimary)