From 0a36c1e7503bafa76c93f065f7bbca651180163b Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期五, 25 十月 2024 14:38:45 +0800 Subject: [PATCH] 会议没声音 --- src/views/meet/index.vue | 46 +++++++++++++++++++++++----------------------- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/views/meet/index.vue b/src/views/meet/index.vue index e8b0bed..dca381c 100644 --- a/src/views/meet/index.vue +++ b/src/views/meet/index.vue @@ -21,7 +21,7 @@ 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, @@ -55,7 +55,7 @@ ] }, ModeratorIndicator: true, - startSilent: true, + // startSilent: true, //绂佺敤鏀瑰悕 readOnlyName: true, //鍙備細鑰呭悕鍗� @@ -107,7 +107,7 @@ // 绂佺敤閭�璇� disableInviteFunctions: true, //绂佺敤鍏ㄩ儴闈欓煶 - disableRemoteMute: true, + disableRemoteMute: false, //涓绘寔浜洪�夐」 participantsPane: { enabled: false, @@ -130,7 +130,7 @@ jitsiInit(); // 杩炴帴webscoket - connect(); + // connect(); }); const jitsiInit = () => { @@ -139,26 +139,26 @@ }); } -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> -- Gitblit v1.8.0