feat(backend): serve video with HTTP range requests

This commit is contained in:
2026-06-07 19:53:19 +03:00
parent 8cb1f4142b
commit b2a7787e45
3 changed files with 65 additions and 3 deletions

View File

@@ -25,7 +25,7 @@
onclick={(e) => e.stopPropagation()}
>
{#if isVideo}
<VideoPreview src={`/api/files/${file.id}/download`} />
<VideoPreview src={`/api/files/${file.id}/stream_part`} />
<div
class="pointer-events-none absolute inset-x-0 top-0 z-10 flex items-center justify-between bg-linear-to-b from-black/70 to-transparent px-4 py-3"
>