From 49a01c1af86707fe966f46bad4c19db3608ef49f Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Mon, 22 Jul 2024 10:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index ceab969..0a16486 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -124,6 +124,7 @@ 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, @@ -139,6 +140,7 @@ const Meeting: React.FC = () => { }, 1000); }, onUserJoined: async (info: any, remoteUid: any, _elapsed: any) => { + console.log(remoteUid, '远端'); await getRoomUser() setTimeout(() => { agora.setupRemoteVideoJoin({ @@ -149,6 +151,7 @@ const Meeting: React.FC = () => { }, 1000); }, onUserOffline: async (info: any, remoteUid: any, reason: any) => { + console.log(remoteUid, "离开"); await onInvoke('levelChannel', { roomNum: info.channelId }) @@ -159,7 +162,7 @@ const Meeting: React.FC = () => { }) setTimeout(() => { getRoomUser() - }, 2000); + }, 3000); } }) agora.setCameraCapture(VideoSourceType.VideoSourceCameraPrimary)