|
|
@@ -42,7 +42,8 @@ const remoteVideo = ref(null as unknown as HTMLVideoElement)
|
|
|
const RTC = new WebRtcService()
|
|
|
const store = useStore()
|
|
|
const mqtt = inject('MQTT') as Any
|
|
|
-const menuList = shallowRef([ { name: '信号', value: 0, component: defineAsyncComponent(() => import('@/components/signal.vue')) },
|
|
|
+const menuList = shallowRef([
|
|
|
+ { name: '信号', value: 0, component: defineAsyncComponent(() => import('@/components/signal.vue')) },
|
|
|
{ name: '电量', value: 0, component: defineAsyncComponent(() => import('@/components/battery.vue')) },
|
|
|
{
|
|
|
name: '录音',
|
|
|
@@ -54,7 +55,8 @@ const menuList = shallowRef([ { name: '信号', value: 0, component: defineAsync
|
|
|
},
|
|
|
{
|
|
|
name: '静音', value: 0, callBack: (mute: boolean) => RTC.muteRemoteAudio(mute), component: defineAsyncComponent(() => import('@/components/audio.vue'))
|
|
|
- } ])
|
|
|
+ }
|
|
|
+])
|
|
|
const gauge = ref({ speed: 0, num: 0 })
|
|
|
|
|
|
watch(() => store.mqtt_message, async (value: { type: string, data?: RTCSessionDescriptionInit }) => {
|