--- import WebsiteLayout from '@layouts/website/WebsiteLayout.astro'; import VideoPlayer from '@app/website/video/VideoPlayer.svelte'; import { getVideoMetadata, resolveVideo } from '@util/video.ts'; import { BASE_PATH } from 'astro:env/server'; const { name } = Astro.params; const video = name ? await resolveVideo(name) : null; if (!video) return new Response(null, { status: 404 }); const metadata = await getVideoMetadata(video); if (!metadata) return new Response(null, { status: 404 }); const { title, description, width, height, duration } = metadata; const streamPath = `${BASE_PATH}/video/${encodeURIComponent(video.name)}/stream`; --- {width && } {height && } {duration && }

Video

{title}

{description && (

{description}

)}