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)