From 4bba45048b0cd857f32c19f8c4f0a51fc183a16e Mon Sep 17 00:00:00 2001 From: localhost Date: Sat, 7 Mar 2026 00:46:21 +0100 Subject: [PATCH] report video size to backend --- index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.ts b/index.ts index 5f61064..b9164a1 100644 --- a/index.ts +++ b/index.ts @@ -212,6 +212,7 @@ app.ws('/download/:id', async (ws, req) => { return ws.close() } + ws.send(`VIDEOSIZE-${videoSizeTotal}`) audioOutputStream = createOutputStream(req.params.id, selectedFormats.audioFormat.mimeType!); videoOutputStream = createOutputStream(req.params.id, selectedFormats.videoFormat.mimeType!);