|
@@ -57,11 +57,15 @@
|
|
<div class="invitation" @click="handleCreateShare"></div>
|
|
<div class="invitation" @click="handleCreateShare"></div>
|
|
<!-- @click="openMember" -->
|
|
<!-- @click="openMember" -->
|
|
<div class="members" @click="openMember"></div>
|
|
<div class="members" @click="openMember"></div>
|
|
|
|
+
|
|
<template v-if="isNativeLeader">
|
|
<template v-if="isNativeLeader">
|
|
<div class="mic_on" v-if="!audioMuted" @click="handleMute"></div>
|
|
<div class="mic_on" v-if="!audioMuted" @click="handleMute"></div>
|
|
<div class="mic_no" v-if="audioMuted" @click="handleNoMute"></div>
|
|
<div class="mic_no" v-if="audioMuted" @click="handleNoMute"></div>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+ <template v-else>
|
|
|
|
+ <div class="mic_on" v-if="!audioMuted"></div>
|
|
|
|
+ <div class="mic_no" v-if="audioMuted"></div>
|
|
|
|
+ </template>
|
|
<div style="font-size: 0.65rem" v-if="isNativeLeader && sceneList.length > 1">
|
|
<div style="font-size: 0.65rem" v-if="isNativeLeader && sceneList.length > 1">
|
|
<ImageIcon type="scene" @click="showScenes = !showScenes" />
|
|
<ImageIcon type="scene" @click="showScenes = !showScenes" />
|
|
</div>
|
|
</div>
|
|
@@ -210,8 +214,8 @@
|
|
|
|
|
|
const selfRoomStatus = computed(() => rtcStore.getSelfRoomStatus());
|
|
const selfRoomStatus = computed(() => rtcStore.getSelfRoomStatus());
|
|
const audioMuted = computed(() => unref(selfRoomStatus)?.IsMuted);
|
|
const audioMuted = computed(() => unref(selfRoomStatus)?.IsMuted);
|
|
-
|
|
|
|
const hosterhasVideo = computed(() => rtcStore.videoDeviceId?.length > 0);
|
|
const hosterhasVideo = computed(() => rtcStore.videoDeviceId?.length > 0);
|
|
|
|
+
|
|
const { muteVideoLeader } = useRtcSdk();
|
|
const { muteVideoLeader } = useRtcSdk();
|
|
let roomCounter = ref(-1);
|
|
let roomCounter = ref(-1);
|
|
let roomCount: NodeJS.Timeout;
|
|
let roomCount: NodeJS.Timeout;
|
|
@@ -245,6 +249,7 @@
|
|
},
|
|
},
|
|
{ immediate: true, deep: true },
|
|
{ immediate: true, deep: true },
|
|
);
|
|
);
|
|
|
|
+
|
|
//设置socket 参数
|
|
//设置socket 参数
|
|
const startJoin = (callback?: () => void) => {
|
|
const startJoin = (callback?: () => void) => {
|
|
consola.info({
|
|
consola.info({
|
|
@@ -437,8 +442,7 @@
|
|
const handleNoMute = () => {
|
|
const handleNoMute = () => {
|
|
const { localStream } = useRtcSdk();
|
|
const { localStream } = useRtcSdk();
|
|
const { socket } = useSocket();
|
|
const { socket } = useSocket();
|
|
- console.log('localStream', localStream);
|
|
|
|
-
|
|
|
|
|
|
+ // console.log('localStream', localStream);
|
|
console.log('开启MIC');
|
|
console.log('开启MIC');
|
|
socket.emit('action', {
|
|
socket.emit('action', {
|
|
type: 'users-muted',
|
|
type: 'users-muted',
|
|
@@ -447,7 +451,7 @@
|
|
});
|
|
});
|
|
localStream.resume();
|
|
localStream.resume();
|
|
rtcStore.unmute();
|
|
rtcStore.unmute();
|
|
- localStream.unmuteAudio();
|
|
|
|
|
|
+ // localStream.unmuteAudio();
|
|
};
|
|
};
|
|
const handleMute = () => {
|
|
const handleMute = () => {
|
|
const { localStream } = useRtcSdk();
|
|
const { localStream } = useRtcSdk();
|