client volumes

This commit is contained in:
2026-01-29 21:59:41 +06:00
parent aeaea47609
commit fbdceb2e55
5 changed files with 27 additions and 3 deletions

View File

@@ -7,7 +7,12 @@
}"
>
<div class="p-3 flex items-center gap-3" @click="toggleExpand">
<PrimeAvatar size="small">
<PrimeAvatar
size="small"
:class="{
'outline-1 outline-primary outline-offset-2': speaking,
}"
>
<template #icon>
<User :size="20" />
</template>
@@ -61,7 +66,7 @@ const props = defineProps<{
}>()
const { outputMuted } = useApp()
const { consumers: allConsumers, micProducer } = useMediasoup()
const { consumers: allConsumers, micProducer, speakingClients } = useMediasoup()
const { me } = useClients()
const { show } = useFullscreenVideo()
@@ -94,6 +99,10 @@ const audioTrack = computed(() => {
return audioConsumer.value?.track
})
const speaking = computed(() => {
return speakingClients.value.find(speaker => speaker.clientId === props.client.socketId)
})
const audioConsumerPaused = ref(false)
const inputMuted = computed(() => {