From 8e867f310b54fe94fe8914608ede9a06836937c3 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期一, 12 八月 2024 16:52:39 +0800
Subject: [PATCH] feat:自带命令全体静音、关闭摄像头

---
 src/views/meet/index.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/meet/index.vue b/src/views/meet/index.vue
index 35a13e0..8b86a28 100644
--- a/src/views/meet/index.vue
+++ b/src/views/meet/index.vue
@@ -26,8 +26,8 @@
                 <el-dropdown trigger="click" @command="handleCommand">
                   <i class="el-icon-more-outline" id="more"></i>
                   <el-dropdown-menu slot="dropdown">
-                    <el-dropdown-item :command="{ command: 'openCamera', id: scope.row.id }">鎵撳紑鎽勫儚澶�</el-dropdown-item>
-                    <el-dropdown-item :command="{ command: 'mute', id: scope.row.id }">闈欓煶</el-dropdown-item>
+                    <el-dropdown-item :command="{ command: 'openCamera', id: scope.row.id }">鎵撳紑/鍏抽棴鎽勫儚澶�</el-dropdown-item>
+                    <el-dropdown-item :command="{ command: 'mute', id: scope.row.id }">闈欓煶/鍙栨秷闈欓煶</el-dropdown-item>
                     <el-dropdown-item :command="{ command: 'kickOut', id: scope.row.id }">韪㈠嚭</el-dropdown-item>
                   </el-dropdown-menu>
                 </el-dropdown>
@@ -42,6 +42,7 @@
             </el-table-column>
           </el-table>
           <el-button class="link-left" type="primary" size="small" @click="muteEveryone">鍏ㄤ綋闈欓煶</el-button>
+          <el-button class="link-left" type="primary" size="small" @click="videoEveryone">鍏ㄤ綋鍏抽棴鎽勫儚澶�</el-button>
         </el-row>
       </div>
     </div>
@@ -78,6 +79,9 @@
   },
   methods: {
     muteEveryone() {
+      this.jitsiApi.executeCommand('muteEveryone', 'audio');
+    },
+    videoEveryone() {
       this.jitsiApi.executeCommand('muteEveryone', 'video');
     },
     handleCommand(command) {

--
Gitblit v1.8.0