DUNGEONS-34: implement Webka local streaming app

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-09-06 16:23:09 +05:00
parent 5540b9a1f4
commit 7c737c1011
36 changed files with 21596 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<script setup lang="ts">
const props = defineProps<{ stream: MediaStream | null; mirror?: boolean }>();
const video = ref<HTMLVideoElement>();
watch(
() => props.stream,
async (stream) => {
await nextTick();
if (video.value) {
video.value.srcObject = stream;
if (stream) void video.value.play().catch(() => {});
}
},
{ immediate: true },
);
</script>
<template>
<video ref="video" autoplay playsinline muted :class="{ mirrored: mirror }" />
</template>