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 @@ + + + + +