From d0af75808b01848e4336ced282c39e64c743a486 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Mon, 10 Jun 2024 22:30:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20web=E7=AB=AF=E5=8D=95=E4=BA=BA=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=91=BD=E5=90=8D=E4=BB=A5=E5=8F=8A=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-ui/src/components/chat/ChatBox.vue | 10 +++---- .../RtcPrivateAcceptor.vue} | 4 +-- .../RtcPrivateVideo.vue} | 30 +++++++++---------- im-ui/src/view/Home.vue | 16 +++++----- 4 files changed, 30 insertions(+), 30 deletions(-) rename im-ui/src/components/{chat/ChatVideoAcceptor.vue => rtc/RtcPrivateAcceptor.vue} (98%) rename im-ui/src/components/{chat/ChatPrivateVideo.vue => rtc/RtcPrivateVideo.vue} (95%) diff --git a/im-ui/src/components/chat/ChatBox.vue b/im-ui/src/components/chat/ChatBox.vue index 6e4a766..43f4c1c 100644 --- a/im-ui/src/components/chat/ChatBox.vue +++ b/im-ui/src/components/chat/ChatBox.vue @@ -47,10 +47,10 @@
+ @click="showPrivateVideo('voice')">
+ @click="showPrivateVideo('video')">
@@ -147,9 +147,9 @@ export default { }, onCall(type){ if(type == this.$enums.MESSAGE_TYPE.RT_VOICE){ - this.showChatVideo('voice'); + this.showPrivateVideo('voice'); }else if(type == this.$enums.MESSAGE_TYPE.RT_VIDEO){ - this.showChatVideo('video'); + this.showPrivateVideo('video'); } }, onKeyDown() { @@ -447,7 +447,7 @@ export default { closeVoiceBox() { this.showVoice = false; }, - showChatVideo(mode) { + showPrivateVideo(mode) { let rtcInfo = { mode: mode, isHost: true, diff --git a/im-ui/src/components/chat/ChatVideoAcceptor.vue b/im-ui/src/components/rtc/RtcPrivateAcceptor.vue similarity index 98% rename from im-ui/src/components/chat/ChatVideoAcceptor.vue rename to im-ui/src/components/rtc/RtcPrivateAcceptor.vue index 6216e23..193bc2f 100644 --- a/im-ui/src/components/chat/ChatVideoAcceptor.vue +++ b/im-ui/src/components/rtc/RtcPrivateAcceptor.vue @@ -1,5 +1,5 @@