From 11cd308d591510acef27d103389aa25d10601830 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期一, 12 八月 2024 16:53:31 +0800
Subject: [PATCH] feat:打开、关闭摄像头
---
src/views/meet/index.vue | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/src/views/meet/index.vue b/src/views/meet/index.vue
index e7c50ea..f2df714 100644
--- a/src/views/meet/index.vue
+++ b/src/views/meet/index.vue
@@ -119,13 +119,6 @@
});
}
-const mute = () => {
- jitsiApi.executeCommand('toggleAudio');
-}
-const kickOut = () => {
- jitsiApi.executeCommand('hangup');
-}
-
const { status, message, error, connect, disconnect, sendMessage } = useWebScoket({
url: 'ws://127.0.0.1:8000/websocket/' + userInfo._rawValue.id,
heartBeatData: 'ping'
@@ -136,13 +129,13 @@
(msg) => {
console.log('msg', msg.commend);
if (msg.commend === 'kickOut') {
- kickOut();
+ jitsiApi.executeCommand('hangup');
}
if (msg.commend === 'mute') {
- mute();
+ jitsiApi.executeCommand('toggleAudio');
}
if (msg.commend === 'openCamera') {
- alert("鍒囨崲鎽勫儚澶�")
+ jitsiApi.executeCommand('toggleVideo');
}
}
);
--
Gitblit v1.8.0