From c427d3c63d4e49b721ac8c42a76859b2296f0652 Mon Sep 17 00:00:00 2001 From: "xie.bx" Date: Fri, 25 Nov 2022 11:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=81=8A=E5=A4=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD-=E5=BC=80=E5=8F=91=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-ui/src/api/enums.js | 21 ++ im-ui/src/components/chat/ChatBox.vue | 2 +- .../src/components/chat/ChatPrivateVideo.vue | 322 ++++++++++++++++++ im-ui/src/components/chat/VideoAcceptor.vue | 124 +++++++ 4 files changed, 468 insertions(+), 1 deletion(-) create mode 100644 im-ui/src/api/enums.js create mode 100644 im-ui/src/components/chat/ChatPrivateVideo.vue create mode 100644 im-ui/src/components/chat/VideoAcceptor.vue diff --git a/im-ui/src/api/enums.js b/im-ui/src/api/enums.js new file mode 100644 index 0000000..ec05b4a --- /dev/null +++ b/im-ui/src/api/enums.js @@ -0,0 +1,21 @@ + +const MESSAGE_TYPE = { + RTC_CALL: 101, + RTC_ACCEPT: 102, + RTC_REJECT: 103, + RTC_CANCEL: 104, + RTC_FAILED: 105, + RTC_HANDUP: 106, + RTC_CANDIDATE: 107 +} + +const USER_STATE = { + OFFLINE: 0, + FREE: 1, + BUSY: 2 +} + +export { + MESSAGE_TYPE, + USER_STATE +} diff --git a/im-ui/src/components/chat/ChatBox.vue b/im-ui/src/components/chat/ChatBox.vue index c096cd1..d53e1f3 100644 --- a/im-ui/src/components/chat/ChatBox.vue +++ b/im-ui/src/components/chat/ChatBox.vue @@ -36,7 +36,7 @@
-
+
diff --git a/im-ui/src/components/chat/ChatPrivateVideo.vue b/im-ui/src/components/chat/ChatPrivateVideo.vue new file mode 100644 index 0000000..87bcb3d --- /dev/null +++ b/im-ui/src/components/chat/ChatPrivateVideo.vue @@ -0,0 +1,322 @@ + + + + + diff --git a/im-ui/src/components/chat/VideoAcceptor.vue b/im-ui/src/components/chat/VideoAcceptor.vue new file mode 100644 index 0000000..6db1e7e --- /dev/null +++ b/im-ui/src/components/chat/VideoAcceptor.vue @@ -0,0 +1,124 @@ + + + + +