diff --git a/src/app/api/stream/[encryptedId]/route.ts b/src/app/api/stream/[encryptedId]/route.ts index 486f534..3039dc9 100644 --- a/src/app/api/stream/[encryptedId]/route.ts +++ b/src/app/api/stream/[encryptedId]/route.ts @@ -78,7 +78,8 @@ export async function GET( responseType: "stream", headers: { "Accept-Ranges": "bytes", - "Range": ranges, + "Range": + ranges === "bytes=0-" ? `bytes=0-${1024 * 1024 - 1}` : ranges, }, }, );