| | |
| | | onMounted(() => { |
| | | const width = window.innerWidth; |
| | | const height = window.innerHeight; |
| | | const domain = 'ycl.easyblog.vip:82/' + id; |
| | | const domain = 'ycl.easyblog.vip:8443/' + id; |
| | | const options = { |
| | | roomName: meetName, |
| | | width: width, |
| | |
| | | ] |
| | | }, |
| | | ModeratorIndicator: true, |
| | | startSilent: true, |
| | | // startSilent: true, |
| | | //禁用改名 |
| | | readOnlyName: true, |
| | | //参会者名单 |
| | |
| | | // 禁用邀请 |
| | | disableInviteFunctions: true, |
| | | //禁用全部静音 |
| | | disableRemoteMute: true, |
| | | disableRemoteMute: false, |
| | | //主持人选项 |
| | | participantsPane: { |
| | | enabled: false, |
| | |
| | | jitsiInit(); |
| | | |
| | | // 连接webscoket |
| | | connect(); |
| | | // connect(); |
| | | }); |
| | | |
| | | const jitsiInit = () => { |
| | |
| | | }); |
| | | } |
| | | |
| | | const {status, message, error, connect, disconnect, sendMessage} = useWebScoket({ |
| | | url: 'wss://ycl.easyblog.vip:82/websocket/' + userInfo._rawValue.id, |
| | | heartBeatData: 'ping' |
| | | }); |
| | | // const {status, message, error, connect, disconnect, sendMessage} = useWebScoket({ |
| | | // url: 'wss://ycl.easyblog.vip:82/websocket/' + userInfo._rawValue.id, |
| | | // heartBeatData: 'ping' |
| | | // }); |
| | | |
| | | watch( |
| | | () => message.value, |
| | | (msg) => { |
| | | console.log('msg', msg.commend); |
| | | if (msg.commend === 'kickOut') { |
| | | jitsiApi.executeCommand('hangup'); |
| | | } |
| | | if (msg.commend === 'mute') { |
| | | jitsiApi.executeCommand('toggleAudio'); |
| | | } |
| | | if (msg.commend === 'openCamera') { |
| | | jitsiApi.executeCommand('toggleVideo'); |
| | | } |
| | | } |
| | | ); |
| | | // watch( |
| | | // () => message.value, |
| | | // (msg) => { |
| | | // console.log('msg', msg.commend); |
| | | // if (msg.commend === 'kickOut') { |
| | | // jitsiApi.executeCommand('hangup'); |
| | | // } |
| | | // if (msg.commend === 'mute') { |
| | | // jitsiApi.executeCommand('toggleAudio'); |
| | | // } |
| | | // if (msg.commend === 'openCamera') { |
| | | // jitsiApi.executeCommand('toggleVideo'); |
| | | // } |
| | | // } |
| | | // ); |
| | | |
| | | |
| | | </script> |