From 385480120bcda041fe1f43f8a3c63563cff4ebf2 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期四, 04 七月 2024 16:38:03 +0800
Subject: [PATCH] feat:学生上课
---
src/views/meet/index.vue | 34 ++++++++++++++++++++++++++++++----
1 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/src/views/meet/index.vue b/src/views/meet/index.vue
index 1d9f847..b40fd46 100644
--- a/src/views/meet/index.vue
+++ b/src/views/meet/index.vue
@@ -6,13 +6,19 @@
<script setup>
import { ref, onMounted } from 'vue';
+import {useRoute} from 'vue-router';
+import {classMeet} from '@/api/modules/meet.js';
+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,12 +26,32 @@
configOverwrite: {
prejoinConfig: {
enabled: false
+ },
+ whiteboard: {
+ enabled: true
}
},
- toolbarButtons: ['whiteboard']
+ userInfo: {
+ displayName: userName
+ }
};
- const api = new JitsiMeetExternalAPI(domain, options);
+ jitsiApi = new JitsiMeetExternalAPI(domain, options);
+ jitsiInit();
+ classMeet(id).then(res => {
+
+ }).catch(err => {
+
+ })
});
+
+const jitsiInit = () => {
+ jitsiApi.addListener('readyToClose', () => {
+
+ });
+}
+
+
+
</script>
<style lang="scss" scoped></style>
\ No newline at end of file
--
Gitblit v1.8.0