From f183ab2c8b47538223f4e6761f3a71302dd7a375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=B7=E5=B8=83=E7=BD=97=E7=85=9C?= <1056317718@qq.com> Date: Mon, 6 Jun 2022 22:34:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=B1=8F=E5=B9=95=E5=85=B1?= =?UTF-8?q?=E4=BA=ABSFU=E6=97=A5=E5=BF=97:mute:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Components/Meeting/MeetingRoom/MeetingRoom.tsx | 3 --- src/Utils/WebRTC/SFU.ts | 1 - 2 files changed, 4 deletions(-) diff --git a/src/Components/Meeting/MeetingRoom/MeetingRoom.tsx b/src/Components/Meeting/MeetingRoom/MeetingRoom.tsx index 821b28f..24fdcd9 100644 --- a/src/Components/Meeting/MeetingRoom/MeetingRoom.tsx +++ b/src/Components/Meeting/MeetingRoom/MeetingRoom.tsx @@ -394,9 +394,6 @@ export default function MeetingRoom(props: MeetingRoomProps) { ); screenShareSfu.on('connect', () => { screenShareSfu.join(); - screenShareSfu.on('newMessage', (msg) => { - console.log(msg); - }); screenShareSfu.on('onJoinSuccess', () => { screenShareSfu.publish(stream); }); diff --git a/src/Utils/WebRTC/SFU.ts b/src/Utils/WebRTC/SFU.ts index 04e4f70..9258b66 100644 --- a/src/Utils/WebRTC/SFU.ts +++ b/src/Utils/WebRTC/SFU.ts @@ -47,7 +47,6 @@ export default class SFU extends EventEmitter { this.socket.onmessage = (e) => { const parseMessage = JSON.parse(e.data); // if (parseMessage && parseMessage.type !== 'heartPackage') console.log(parseMessage); - this.emit('newMessage', parseMessage); switch (parseMessage.type) { case 'newUser': this.onNewMemberJoin(parseMessage);