From 204d2a822b78caac40fa7bb394910a21aa0b96c2 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 24 七月 2024 15:43:30 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/meet/index.vue |   52 +++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 47 insertions(+), 5 deletions(-)

diff --git a/src/views/meet/index.vue b/src/views/meet/index.vue
index cd6e192..ceef90e 100644
--- a/src/views/meet/index.vue
+++ b/src/views/meet/index.vue
@@ -5,14 +5,20 @@
 </template>
 
 <script setup>
-import { ref, onMounted } from 'vue';
+import {ref, onMounted} from 'vue';
+import {useRoute} from 'vue-router';
+
+const route = useRoute();
 const meet = ref(null);
+
+const {meetName, id, userName, userCode} = route.query;
+let jitsiApi = null;
 onMounted(() => {
   const width = window.innerWidth;
   const height = window.innerHeight;
-  const domain = 'ycl.easyblog.vip:8443';
+  const domain = 'ycl.easyblog.vip:8443/' + id;
   const options = {
-    roomName: 'test',
+    roomName: meetName,
     width: width,
     height: height,
     parentNode: meet.value,
@@ -20,11 +26,47 @@
     configOverwrite: {
       prejoinConfig: {
         enabled: false
+      },
+      //绂佺敤閭
+      gravatar: {
+        disabled: true
+      },
+      //绂佺敤鏀瑰悕
+      readOnlyName: true,
+      remoteVideoMenu: {
+        disabled: true,
+        disableKick: true,
+        disableGrantModerator: true
+      },
+      disableRemoteMute: true,
+      //涓绘寔浜洪�夐」
+      participantsPane: {
+        enabled: true,
+        hideMoreActionsButton: true,
+        hideModeratorSettingsTab: true,
+        hideMuteAllButton: true,
+      },
+      whiteboard: {
+        enabled: true
       }
     },
+    toolbarButtons: ['whiteboard',],
+    userInfo: {
+      displayName: userName
+    }
   };
-  const api = new JitsiMeetExternalAPI(domain, options);
+  jitsiApi = new JitsiMeetExternalAPI(domain, options);
+  jitsiInit();
+
 });
+
+const jitsiInit = () => {
+  jitsiApi.addListener('readyToClose', () => {
+
+  });
+}
+
+
 </script>
 
-<style lang="scss" scoped></style>
\ No newline at end of file
+<style lang="scss" scoped></style>

--
Gitblit v1.8.0