Files
chad/client/app/components/Gallery/Card.vue
opti1337 269b19a5be
All checks were successful
Deploy / publish-web (push) Successful in 1m16s
вебкамера там, туда-сюда
2026-02-02 14:39:16 +06:00

22 lines
454 B
Vue

<template>
<div class="cursor-pointer hover:outline outline-primary rounded overflow-hidden flex items-center justify-center">
<video :srcObject="mediaStream" muted autoplay />
</div>
</template>
<script setup lang="ts">
import type { Consumer } from '#shared/types'
const props = defineProps<{
consumer: Consumer
}>()
const mediaStream = computed(() => {
return new MediaStream([props.consumer.raw.track])
})
</script>
<style>
</style>