| | |
| | | |
| | | <script> |
| | | import { getStudentList } from '@/api/meet' |
| | | import Cookies from 'js-cookie' |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | methods: { |
| | | muteEveryone () { |
| | | this.jitsiApi.executeCommand('muteEveryone', 'audio') |
| | | const h = this.$createElement; |
| | | |
| | | this.$notify({ |
| | | title: '提示', |
| | | message: h('i', { style: 'color: teal'}, '已全体禁音') |
| | | }); |
| | | }, |
| | | videoEveryone () { |
| | | this.jitsiApi.executeCommand('muteEveryone', 'video') |
| | | const h = this.$createElement; |
| | | |
| | | this.$notify({ |
| | | title: '提示', |
| | | message: h('i', { style: 'color: teal'}, '已关闭全体视频') |
| | | }); |
| | | }, |
| | | handleCommand (command) { |
| | | this.sendMessage(JSON.stringify(command)) |
| | | }, |
| | | initWebSocket () { |
| | | this.ws = new WebSocket('wss://www.kgmeet.com::18080/websocket/' + 1) |
| | | this.ws = new WebSocket('wss://www.kgmeet.com:18080/websocket/' + JSON.parse(Cookies.get('adminUserInfo')).id) |
| | | let ws = this.ws |
| | | ws.onopen = () => { |
| | | console.log('WebSocket 连接成功') |