diff --git a/index.ts b/index.ts index b9164a1..5177f25 100644 --- a/index.ts +++ b/index.ts @@ -183,6 +183,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!);