front update
All checks were successful
Deploy / deploy (push) Successful in 1m38s

This commit is contained in:
Никита Круглицкий
2025-10-05 21:43:28 +06:00
parent 1ea3b2d376
commit fb5b42e9db
17 changed files with 873 additions and 154 deletions

View File

@@ -1,24 +1,7 @@
<template>
<PrimeProgressSpinner v-if="initializing" />
<template v-for="(s, producerId) in streams" :key="producerId">
<PrimeChip :label="producerId" />
<audio
:ref="(el) => onAudioRef(el as HTMLAudioElement, s)"
autoplay
controls
style="display: none;"
/>
</template>
<NuxtPage />
</template>
<script lang="ts" setup>
const { initializing, connected, streams } = useMediasoup()
function onAudioRef(ref: HTMLAudioElement, stream: MediaStream) {
if (!ref)
return
ref.srcObject = stream
}
useMediasoup()
</script>